added sonarqube for static code analysis
All checks were successful
Tests / Run Go Tests (push) Successful in 1m25s

This commit is contained in:
2025-10-07 14:54:24 +02:00
parent 75929e3b7d
commit 18046bbe18
2 changed files with 10 additions and 2 deletions

View File

@@ -46,3 +46,11 @@ jobs:
arbeitszeitmessung-
- name: Run Go Tests
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 }}

View File

@@ -4,5 +4,5 @@ sonar.exclusions=**/*_test.go
sonar.tests=.
sonar.test.inclusions=**/*_test.go
sonar.go.tests.reportPaths=.test/report.json
sonar.go.coverage.reportPaths=.test/coverage.out
sonar.go.tests.reportPaths=Backned/.test/report.json
sonar.go.coverage.reportPaths=Backned/.test/coverage.out