This commit is contained in:
@@ -29,14 +29,11 @@ steps:
|
||||
- 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:
|
||||
image: ghcr.io/j04n-f/sonar-plugin
|
||||
settings:
|
||||
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}
|
||||
sonar_url:
|
||||
from_secret: SONAR_HOST_URL
|
||||
sonar_project_key: z-elements
|
||||
sonar_project_name: "Z Elements"
|
||||
|
||||
Reference in New Issue
Block a user