chore: add sonarcloud scan
This commit is contained in:
parent
67018bf0eb
commit
392614694f
2 changed files with 8 additions and 2 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -37,7 +37,13 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Test
|
- 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:
|
image-scan:
|
||||||
name: Image Scan
|
name: Image Scan
|
||||||
|
|
|
@ -7,4 +7,4 @@ sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*
|
||||||
sonar.tests=.
|
sonar.tests=.
|
||||||
sonar.test.inclusions=**/*_test.go
|
sonar.test.inclusions=**/*_test.go
|
||||||
sonar.test.exclusions=**/vendor/**
|
sonar.test.exclusions=**/vendor/**
|
||||||
sonar.go.coverage.reportPaths=.cover/cover.out
|
sonar.go.coverage.reportPaths=cover.out
|
||||||
|
|
Loading…
Reference in a new issue