Skip to content

Commit

Permalink
chore: publish code coverage to SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Jan 22, 2025
1 parent 60cdfae commit 8065b9f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dhis2-verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
with:
# projectBaseDir: client/
args: >
-X
-Dsonar.organization=dhis2
-Dsonar.projectKey=dhis2_app-hub
-Dsonar.test.exclusions=server/**
-Dsonar.javascript.coverage.reportPaths=./client/coverage/lcov.info
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
lint-pr-title:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sonar.projectKey=dhis2_app-hub
sonar.javascript.lcov.reportPaths=./client/coverage/lcov.info

0 comments on commit 8065b9f

Please sign in to comment.