Check for coverage output
All checks were successful
Tests / Run Go Tests (push) Successful in 1m23s
All checks were successful
Tests / Run Go Tests (push) Successful in 1m23s
This commit is contained in:
@@ -48,6 +48,13 @@ jobs:
|
||||
arbeitszeitmessung-
|
||||
- name: Run Go Tests
|
||||
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
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user