Skip to content

Commit a44d38e

Browse files
authored
Merge pull request #17 from pangolin-do-golang/tests
Change actions
2 parents 4be228b + 832a348 commit a44d38e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/BuildApp.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66
branches:
77
- main
88
pull_request:
9-
branches:
10-
- main
9+
types: [opened, synchronize, reopened]
1110

1211

1312
jobs:
@@ -32,7 +31,7 @@ jobs:
3231
- name: Build And Test
3332
shell: bash
3433
run: |
35-
go test -cover ./internal/... -coverprofile=./coverage.out -coverpkg=./internal/...
34+
go test -race -cover -json ./internal/... -coverprofile=coverage.json
3635
3736
- name: SonarCloud Scan
3837
uses: SonarSource/sonarcloud-github-action@master
@@ -48,8 +47,8 @@ jobs:
4847
-Dsonar.projectVersion=${{ env.SHA }}
4948
-Dsonar.language=go
5049
-Dsonar.qualitygate.wait=true
51-
-Dsonar.tests=internal/
52-
-Dsonar.go.coverage.reportPaths=./coverage.out
50+
-Dsonar.go.coverage.reportPaths=./coverage.json
51+
-Dsonar.tests=./internal/
5352
-Dsonar.verbose=true
5453
5554
- name: Login to GitHub Container Registry

0 commit comments

Comments
 (0)