Skip to content

Commit 3745679

Browse files
committed
Integrating SonarCloud
1 parent 10a26f1 commit 3745679

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
restore-keys: |
3333
${{ runner.os }}-m2-
3434
35-
- name: Build and Run Unit Tests
35+
- name: Build and run tests
3636
run: |
37-
mvn -B clean verify
37+
export MAVEN_OPTS="-Djansi.force=true"
38+
mvn clean verify sonar:sonar \
39+
-Dsonar.projectKey=code-quality-testing \
40+
-Dsonar.organization=peterm85 \
41+
-Dsonar.host.url=https://sonarcloud.io \
42+
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
43+
-Dsonar.exclusions=**/*Application.java

sonar-project.properties

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)