Skip to content

Commit 06df585

Browse files
committed
Integrating SonarCloud
1 parent 3745679 commit 06df585

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ jobs:
3535
- name: Build and run tests
3636
run: |
3737
export MAVEN_OPTS="-Djansi.force=true"
38-
mvn clean verify sonar:sonar \
38+
mvn -B clean verify sonar:sonar \
3939
-Dsonar.projectKey=code-quality-testing \
4040
-Dsonar.organization=peterm85 \
4141
-Dsonar.host.url=https://sonarcloud.io \
4242
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
43+
-Dsonar.sources=src/main \
44+
-Dsonar.tests=src/test \
45+
-Dsonar.junit.reportPaths=target/surefire-reports \
46+
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
4347
-Dsonar.exclusions=**/*Application.java

0 commit comments

Comments
 (0)