Update build.yml

This commit is contained in:
DmitryDmitriev 2021-02-24 15:48:56 +03:00 committed by GitHub
parent 2f9bce9d5f
commit c50b3cca50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,13 +19,14 @@ jobs:
- run: |
go test -short -coverprofile=cov.out `go list ./... | grep -v vendor/`
go tool cover -func=cov.out
pwd
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=smarthead
-Dsonar.projectKey=smarthead_go-amo
-Dsonar.go.coverage.reportPaths=./go-amo/cov.out
-Dsonar.go.coverage.reportPaths=cov.out
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}