fix: Update SonarQube scanner installation in API Docs workflow
Some checks failed
API Docs (Node.js Express) / test (16) (push) Successful in 1m49s
API Docs (Node.js Express) / test (18) (push) Successful in 1m52s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 47s
API Docs (Node.js Express) / build (push) Successful in 38s
Integration Tests / integration-tests (push) Failing after 46s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m45s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 40s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m11s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 19s
API Docs (Node.js Express) / test (20) (push) Successful in 1m40s
Some checks failed
API Docs (Node.js Express) / test (16) (push) Successful in 1m49s
API Docs (Node.js Express) / test (18) (push) Successful in 1m52s
LabFusion CI/CD Pipeline / api-docs (push) Failing after 47s
API Docs (Node.js Express) / build (push) Successful in 38s
Integration Tests / integration-tests (push) Failing after 46s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m45s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 40s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m11s
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 19s
API Docs (Node.js Express) / test (20) (push) Successful in 1m40s
### 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.
This commit is contained in:
@@ -108,20 +108,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Sending API Docs results to SonarQube..."
|
echo "Sending API Docs results to SonarQube..."
|
||||||
# Install SonarQube Scanner for Node.js
|
# Install SonarQube Scanner for Node.js
|
||||||
npm install -g sonar-scanner
|
npm install -g @sonar/scan
|
||||||
|
|
||||||
# Run SonarQube analysis
|
# Run SonarQube analysis
|
||||||
sonar-scanner \
|
sonar-scanner \
|
||||||
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
|
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
|
||||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
||||||
-Dsonar.projectKey=labFusion \
|
-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
|
|
||||||
|
|
||||||
- name: Test results summary
|
- name: Test results summary
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user