From db870538a0cbe02e4f0fef42ec1f2f0e439da2ac Mon Sep 17 00:00:00 2001 From: GSRN Date: Mon, 15 Sep 2025 20:12:37 +0200 Subject: [PATCH] fix: Update SonarQube scanner installation in API Docs workflow ### Summary of Changes - Replaced `sonar-scanner` with `@sonar/scan` for improved compatibility. - Simplified SonarQube analysis command by removing unnecessary parameters. ### Expected Results - Streamlined SonarQube integration in the CI workflow for API Docs. - Enhanced maintainability and clarity of the CI configuration. --- .gitea/workflows/api-docs.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/api-docs.yml b/.gitea/workflows/api-docs.yml index 0c2abe3..29ad8f9 100644 --- a/.gitea/workflows/api-docs.yml +++ b/.gitea/workflows/api-docs.yml @@ -108,20 +108,13 @@ jobs: run: | echo "Sending API Docs results to SonarQube..." # Install SonarQube Scanner for Node.js - npm install -g sonar-scanner + npm install -g @sonar/scan # Run SonarQube analysis sonar-scanner \ -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ -Dsonar.login=${{ secrets.SONAR_TOKEN }} \ - -Dsonar.projectKey=labFusion \ - -Dsonar.projectName="LabFusion" \ - -Dsonar.projectVersion=1.0.0 \ - -Dsonar.modules=api-docs \ - -Dsonar.sources=. \ - -Dsonar.tests=__tests__ \ - -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \ - -Dsonar.testExecutionReportPaths=test-results.xml + -Dsonar.projectKey=labFusion - name: Test results summary if: always()