Check for coverage output
All checks were successful
Tests / Run Go Tests (push) Successful in 1m23s

This commit is contained in:
2025-10-07 15:56:49 +02:00
parent 95d5c4ab9d
commit d69ec600cd

View File

@@ -48,6 +48,13 @@ jobs:
arbeitszeitmessung- arbeitszeitmessung-
- name: Run Go Tests - name: Run Go Tests
run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json
- name: Verify coverage report exists
run: |
if [ -f "Backend/.test/coverage.out" ]; then
echo "Coverage report found"
else
echo "Coverage report not found"
fi
- uses: SonarSource/sonarqube-scan-action@v6 - uses: SonarSource/sonarqube-scan-action@v6
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}