File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
pull_request :
9
- branches :
10
- - main
9
+ types : [opened, synchronize, reopened]
11
10
12
11
13
12
jobs :
32
31
- name : Build And Test
33
32
shell : bash
34
33
run : |
35
- go test -cover ./internal/... -coverprofile=./ coverage.out -coverpkg=./internal/...
34
+ go test -race - cover -json ./internal/... -coverprofile=coverage.json
36
35
37
36
- name : SonarCloud Scan
38
37
uses : SonarSource/sonarcloud-github-action@master
48
47
-Dsonar.projectVersion=${{ env.SHA }}
49
48
-Dsonar.language=go
50
49
-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/
53
52
-Dsonar.verbose=true
54
53
55
54
- name : Login to GitHub Container Registry
You can’t perform that action at this time.
0 commit comments