File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,22 @@ jobs:
6262 - name : Install dependencies
6363 run : npm ci
6464
65- - name : Run SonarScanner
66- run : |
67- npm install -g sonarqube-scanner
68- sonar-scanner \
69- -Dsonar.projectKey=your_project_key \
70- -Dsonar.organization=your_org_key \ # remove this if using self-hosted SonarQube
71- -Dsonar.sources=. \
72- -Dsonar.exclusions=node_modules/**,dist/**,**/*.spec.ts \
73- -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \
74- -Dsonar.login=${{ secrets.SONAR_TOKEN }}
65+ - name : Run SonarQube analysis
66+ run : >
67+ ./mvnw clean verify sonar:sonar -P coverage
68+ --batch-mode
69+ --update-snapshots
70+ --no-transfer-progress
71+ env :
72+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
73+
74+ # - name: Run SonarScanner
75+ # run: |
76+ # npm install -g sonarqube-scanner
77+ # sonar-scanner \
78+ # -Dsonar.projectKey=your_project_key \
79+ # -Dsonar.organization=your_org_key \ # remove this if using self-hosted SonarQube
80+ # -Dsonar.sources=. \
81+ # -Dsonar.exclusions=node_modules/**,dist/**,**/*.spec.ts \
82+ # -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info \
83+ # -Dsonar.login=${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments