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 21, 2025
1 parent 60cdfae commit c68bc6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/dhis2-verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ jobs:
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test:client --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
projectBaseDir: client/src
args: >
-X
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
sonar.javascript.lcov.reportPaths=./client/coverage/lcov.info

0 comments on commit c68bc6f

Please sign in to comment.