File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 32
32
- name : Build And Test
33
33
shell : bash
34
34
run : |
35
- go test -json ./internal/... -coverprofile=coverage.out > result.json
35
+ go test -cover ./internal/... -coverprofile=./ coverage.out -coverpkg=./internal/...
36
36
37
37
- name : SonarCloud Scan
38
38
uses : SonarSource/sonarcloud-github-action@master
@@ -41,15 +41,15 @@ jobs:
41
41
github-token : ${{ secrets.GITHUB_TOKEN }}
42
42
SHA : ${{ steps.short-sha.outputs.sha }}
43
43
with :
44
+ projectBaseDir : ./
44
45
args : >
45
46
-Dsonar.organization=pangolin-golang
46
47
-Dsonar.projectKey=pangolin-do-golang_tech-challenge-order-api
47
48
-Dsonar.projectVersion=${{ env.SHA }}
48
49
-Dsonar.language=go
49
50
-Dsonar.qualitygate.wait=true
50
51
-Dsonar.tests=internal/
51
- -Dsonar.go.coverage.reportPaths=coverage.out
52
- -Dsonar.go.tests.reportPaths=result.json
52
+ -Dsonar.go.coverage.reportPaths=./coverage.out
53
53
-Dsonar.verbose=true
54
54
55
55
- name : Login to GitHub Container Registry
You can’t perform that action at this time.
0 commit comments