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.javascript.lcov.reportPaths=coverage/js/lcov.info \
-Dsonar.sources=src,public,scripts,server.js,tools/python \
-Dsonar.tests=test \
-Dsonar.test.inclusions=test/**/*.test.js,test-support/**/*.js \
-Dsonar.tests=test,test-support \
-Dsonar.test.inclusions=test/**/*.test.js \
-Dsonar.test-support.inclusions=test-support/**/*.js \
-Dsonar.exclusions=public/vendor/**,node_modules/**,data/**,storage/**
#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.
# - uses: SonarSource/sonarqube-quality-gate-action@v1
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: SonarSource/sonarqube-quality-gate-action@v1
timeout-minutes: 5
env:
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}