chore: add sonarcloud scan

This commit is contained in:
Enrico Stahn 2020-03-11 23:47:36 +11:00
parent 67018bf0eb
commit 392614694f
No known key found for this signature in database
GPG key ID: 5263621C269A50DE
2 changed files with 8 additions and 2 deletions

View file

@ -37,7 +37,13 @@ jobs:
uses: actions/checkout@v2
- name: Test
run: go test ./...
run: go test -coverprofile cover.out ./...
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
image-scan:
name: Image Scan

View file

@ -7,4 +7,4 @@ sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.test.exclusions=**/vendor/**
sonar.go.coverage.reportPaths=.cover/cover.out
sonar.go.coverage.reportPaths=cover.out