From b17437ebcbe36e2352169b0095eea5f1a9b5ba96 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Mon, 25 Nov 2024 12:13:13 -0800 Subject: [PATCH] Set up sonar for core and spring --- .github/workflows/.tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/.tests.yml b/.github/workflows/.tests.yml index d8bef0c..bdb0d9a 100644 --- a/.github/workflows/.tests.yml +++ b/.github/workflows/.tests.yml @@ -46,11 +46,11 @@ jobs: java-version: "17" sonar_args: > -Dsonar.organization=bcgov-sonarcloud - -Dsonar.projectKey=bcgov_nr-forest-client-commons + -Dsonar.projectKey=bcgov_nr-forest-client-commons-core -Dsonar.coverage.jacoco.xmlReportPaths=target/coverage-reports/merged-test-report/jacoco.xml -Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml -Dsonar.coverage.exclusions= **/dto/**,**/*$*Builder* - sonar_token: ${{ secrets.SONAR_TOKEN_COMMONS }} + sonar_token: ${{ secrets.SONAR_CORE }} triggers: ('core/') - uses: bcgov-nr/action-test-and-analyse-java@v1.0.2 @@ -64,11 +64,11 @@ jobs: java-version: "17" sonar_args: > -Dsonar.organization=bcgov-sonarcloud - -Dsonar.projectKey=bcgov_nr-forest-client-commons + -Dsonar.projectKey=bcgov_nr-forest-client-commons-spring -Dsonar.coverage.jacoco.xmlReportPaths=target/coverage-reports/merged-test-report/jacoco.xml -Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml -Dsonar.coverage.exclusions=**/configuration/**,**/exception/**,**/dto/**,**/entity/**,**/models/**,**/repository/**,**/*$*Builder*,**/ApplicationConstant* - sonar_token: ${{ secrets.SONAR_TOKEN_COMMONS }} + sonar_token: ${{ secrets.SONAR_SPRING }} triggers: ('spring/') - name: Archive CycloneDX