Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: SonarCloud #100

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ 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 }}
triggers: ('core/')
sonar_token: ${{ secrets.SONAR_CORE }}
# triggers: ('core/')

- uses: bcgov-nr/[email protected]
name: Spring Coverage
Expand All @@ -64,12 +64,12 @@ 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 }}
triggers: ('spring/')
sonar_token: ${{ secrets.SONAR_SPRING }}
# triggers: ('spring/')

- name: Archive CycloneDX
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft]
types: [opened, reopened, synchronize, ready_for_review]
schedule:
- cron: "0 11 * * 0" # 3 AM PST = 12 PM UDT, runs sundays
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

<sonar.organization>bcgov-sonarcloud</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.projectKey>bcgov_nr-forest-client-commons</sonar.projectKey>
<sonar.projectKey>bcgov_nr-forest-client-commons-core</sonar.projectKey>
<sonar.coverage.jacoco.xmlReportPaths>
target/coverage-reports/merged-test-report/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
Expand Down
2 changes: 1 addition & 1 deletion spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<sonar.organization>bcgov-sonarcloud</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.projectKey>bcgov_nr-forest-client-commons</sonar.projectKey>
<sonar.projectKey>bcgov_nr-forest-client-commons-spring</sonar.projectKey>
<sonar.coverage.jacoco.xmlReportPaths>
target/coverage-reports/merged-test-report/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
Expand Down
Loading