Skip to content

Commit

Permalink
ci: add maven command test for back end (#113)
Browse files Browse the repository at this point in the history
* ci: add maven command test for back end

Issue #111

The added command is responsible for getting all test running, checking
for style issues, code formating, and compilation.

* ci: use java 21 for action test and analysis

Issue #111

* ci: update java test action with oracle distribution

Issue #111

* ci: fix sonar args with exclusions and coverage

issue #111

* Adjust Backend with Sonar

---------

Co-authored-by: Derek Roberts <[email protected]>
  • Loading branch information
Ricardo Campos and DerekRoberts authored Oct 4, 2023
1 parent 3351435 commit fba9e31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ jobs:
steps:
- uses: bcgov-nr/[email protected]
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
Expand Down

0 comments on commit fba9e31

Please sign in to comment.