added qualitygate exceptions if <80% and diveded test and test-support scopes

This commit is contained in:
Florian Zumpe 2026-06-17 14:18:27 +02:00
parent 8521d0ff9e
commit ae5bf0fe4c

View File

@ -59,13 +59,15 @@ jobs:
-Dsonar.host.url=$SONAR_HOST_URL \ -Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.javascript.lcov.reportPaths=coverage/js/lcov.info \ -Dsonar.javascript.lcov.reportPaths=coverage/js/lcov.info \
-Dsonar.sources=src,public,scripts,server.js,tools/python \ -Dsonar.sources=src,public,scripts,server.js,tools/python \
-Dsonar.tests=test \ -Dsonar.tests=test,test-support \
-Dsonar.test.inclusions=test/**/*.test.js,test-support/**/*.js \ -Dsonar.test.inclusions=test/**/*.test.js \
-Dsonar.test-support.inclusions=test-support/**/*.js \
-Dsonar.exclusions=public/vendor/**,node_modules/**,data/**,storage/** -Dsonar.exclusions=public/vendor/**,node_modules/**,data/**,storage/**
#If you wish to fail your job when the Quality Gate is red, uncomment the #If you wish to fail your job when the Quality Gate is red, uncomment the
#following lines. This would typically be used to fail a deployment. #following lines. This would typically be used to fail a deployment.
# - uses: SonarSource/sonarqube-quality-gate-action@v1 - uses: SonarSource/sonarqube-quality-gate-action@v1
# timeout-minutes: 5 timeout-minutes: 5
# env: env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}