Update build.yml
This commit is contained in:
parent
2f9bce9d5f
commit
c50b3cca50
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -19,13 +19,14 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
go test -short -coverprofile=cov.out `go list ./... | grep -v vendor/`
|
go test -short -coverprofile=cov.out `go list ./... | grep -v vendor/`
|
||||||
go tool cover -func=cov.out
|
go tool cover -func=cov.out
|
||||||
|
pwd
|
||||||
- name: Analyze with SonarCloud
|
- name: Analyze with SonarCloud
|
||||||
uses: sonarsource/sonarcloud-github-action@master
|
uses: sonarsource/sonarcloud-github-action@master
|
||||||
with:
|
with:
|
||||||
args: >
|
args: >
|
||||||
-Dsonar.organization=smarthead
|
-Dsonar.organization=smarthead
|
||||||
-Dsonar.projectKey=smarthead_go-amo
|
-Dsonar.projectKey=smarthead_go-amo
|
||||||
-Dsonar.go.coverage.reportPaths=./go-amo/cov.out
|
-Dsonar.go.coverage.reportPaths=cov.out
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue