Skip to content

Commit 4be228b

Browse files
authored
Merge pull request #16 from pangolin-do-golang/tests
Ajust actions
2 parents b0a803c + ce65ce1 commit 4be228b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/BuildApp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build And Test
3333
shell: bash
3434
run: |
35-
go test -json ./internal/... -coverprofile=coverage.out > result.json
35+
go test -cover ./internal/... -coverprofile=./coverage.out -coverpkg=./internal/...
3636
3737
- name: SonarCloud Scan
3838
uses: SonarSource/sonarcloud-github-action@master
@@ -41,15 +41,15 @@ jobs:
4141
github-token: ${{ secrets.GITHUB_TOKEN }}
4242
SHA: ${{ steps.short-sha.outputs.sha }}
4343
with:
44+
projectBaseDir: ./
4445
args: >
4546
-Dsonar.organization=pangolin-golang
4647
-Dsonar.projectKey=pangolin-do-golang_tech-challenge-order-api
4748
-Dsonar.projectVersion=${{ env.SHA }}
4849
-Dsonar.language=go
4950
-Dsonar.qualitygate.wait=true
5051
-Dsonar.tests=internal/
51-
-Dsonar.go.coverage.reportPaths=coverage.out
52-
-Dsonar.go.tests.reportPaths=result.json
52+
-Dsonar.go.coverage.reportPaths=./coverage.out
5353
-Dsonar.verbose=true
5454
5555
- name: Login to GitHub Container Registry

0 commit comments

Comments
 (0)