From ae5bf0fe4caa677be59cc7d033329ff5c420e43d Mon Sep 17 00:00:00 2001 From: Florian Zumpe Date: Wed, 17 Jun 2026 14:18:27 +0200 Subject: [PATCH] added qualitygate exceptions if <80% and diveded test and test-support scopes --- .gitea/workflows/sonar-scanner.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/sonar-scanner.yaml b/.gitea/workflows/sonar-scanner.yaml index 1ab1c24..beb134e 100644 --- a/.gitea/workflows/sonar-scanner.yaml +++ b/.gitea/workflows/sonar-scanner.yaml @@ -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 }} \ No newline at end of file + #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_HOST_URL: ${{ vars.SONAR_HOST_URL }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file