Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 7affd6c

Browse files
committed
Set up Go test coverage for SonarCloud
1 parent 312fd84 commit 7affd6c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/sonarcloud.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
- uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
18+
- uses: actions/setup-go@v3
19+
with:
20+
go-version: 1.19
21+
- run: cd devportal && go test -v -coverprofile=coverage.out ./...
1822
- name: SonarCloud Scan
1923
uses: SonarSource/sonarcloud-github-action@master
2024
env:

sonar-project.properties

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
sonar.projectKey=accrescent_devportal
22
sonar.organization=accrescent
3+
4+
sonar.exclusions=**/*_test.go
5+
6+
sonar.test.inclusions=**/*_test.go
7+
sonar.go.coverage.reportPaths=devportal/coverage.out

0 commit comments

Comments
 (0)