diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 7e7b437a..d8da7bf2 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -43,18 +43,18 @@ jobs: steps: - uses: bcgov-nr/action-test-and-analyse-java@v0.2.0 with: - commands: mvn clean package + commands: mvn --no-transfer-progress clean compile verify package checkstyle:checkstyle -P all-tests dir: backend java-cache: maven - java-distribution: temurin - java-version: 17 + java-distribution: oracle + java-version: 21 sonar_args: > - -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts + -Dsonar.exclusions=**/config/**,*/dto/**,**/entity/**,**/exception/**,**/response/**,**/*$*Builder*,**/RestExceptionEndpoint.*,**/ResultsApplication.* + -Dsonar.coverage.jacoco.xmlReportPaths=target/coverage-reports/merged-test-report/jacoco.xml -Dsonar.organization=bcgov-sonarcloud -Dsonar.project.monorepo.enabled=true -Dsonar.projectKey=nr-silva-backend - -Dsonar.sources=src - sonar_token: ${{ secrets.SONAR_TOKEN_BACKEND }} + sonar_project_token: ${{ secrets.SONAR_TOKEN_BACKEND }} triggers: ${{ github.event_name == 'pull_request' && '("backend/")' || '' }} # https://github.com/marketplace/actions/aqua-security-trivy