Skip to content

Commit 5bb7733

Browse files
committed
change sonar configuration
1 parent 0ce2b29 commit 5bb7733

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)