From 7973453d97a65e02201c94ddbc907a11be9874a9 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Tue, 17 Sep 2024 19:23:28 -0700 Subject: [PATCH 1/2] Test sonar --- .github/workflows/sonarscan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml index aa78d494..c2145e06 100644 --- a/.github/workflows/sonarscan.yml +++ b/.github/workflows/sonarscan.yml @@ -33,7 +33,7 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: Build and analyze + - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 6086ad07b7618f086ad2bbc9d5b3a6e2adf06d21 Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Tue, 17 Sep 2024 19:39:37 -0700 Subject: [PATCH 2/2] Set sonar properties inparent pom --- pom.xml | 3 +++ server/wfprev-api/pom.xml | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 276156e7..c4eccc30 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,9 @@ bcgov-sonarcloud https://sonarcloud.io bcgov_nr-bcws-wfprev + server/wfprev-api/src/main/java + server/wfprev-api/src/test + ${project.basedir}/target/jacoco/jacoco.xml diff --git a/server/wfprev-api/pom.xml b/server/wfprev-api/pom.xml index 84a42a33..ed2d79e4 100644 --- a/server/wfprev-api/pom.xml +++ b/server/wfprev-api/pom.xml @@ -30,7 +30,6 @@ 17 - ${project.basedir}/target/jacoco/jacoco.xml