feat: add support for SonarQube
Some checks failed
ci/woodpecker/manual/test-pr Pipeline failed

This commit is contained in:
2026-02-26 11:40:04 +01:00
parent 532e15b722
commit 051bb6fd08
6 changed files with 80 additions and 180 deletions

View File

@@ -27,3 +27,16 @@ steps:
image: node:22
commands:
- npx nx run-many -t test --code-coverage --passWithNoTests --projects="reviews-stars"
- name: sonar
image: sonarsource/sonar-scanner-cli:latest
environment:
SONAR_HOST_URL:
from_secret: SONAR_HOST_URL
SONAR_TOKEN:
from_secret: SONAR_TOKEN
commands:
- sonar-scanner
-Dsonar.pullrequest.key=${CI_COMMIT_PULL_REQUEST}
-Dsonar.pullrequest.branch=${CI_COMMIT_SOURCE_BRANCH}
-Dsonar.pullrequest.base=${CI_COMMIT_TARGET_BRANCH}