added sonarqube for static code analysis
All checks were successful
Tests / Run Go Tests (push) Successful in 1m25s
All checks were successful
Tests / Run Go Tests (push) Successful in 1m25s
This commit is contained in:
@@ -46,3 +46,11 @@ jobs:
|
|||||||
arbeitszeitmessung-
|
arbeitszeitmessung-
|
||||||
- name: Run Go Tests
|
- name: Run Go Tests
|
||||||
run: cd Backend && go test ./...
|
run: cd Backend && go test ./...
|
||||||
|
- uses: SonarSource/sonarqube-scan-action@v6
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||||
|
- uses: SonarSource/sonarqube-quality-gate-action@v1
|
||||||
|
timeout-minutes: 5
|
||||||
|
env:
|
||||||
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ sonar.exclusions=**/*_test.go
|
|||||||
|
|
||||||
sonar.tests=.
|
sonar.tests=.
|
||||||
sonar.test.inclusions=**/*_test.go
|
sonar.test.inclusions=**/*_test.go
|
||||||
sonar.go.tests.reportPaths=.test/report.json
|
sonar.go.tests.reportPaths=Backned/.test/report.json
|
||||||
sonar.go.coverage.reportPaths=.test/coverage.out
|
sonar.go.coverage.reportPaths=Backned/.test/coverage.out
|
||||||
Reference in New Issue
Block a user