Merge pull request #58 from kiegroup/nodejs20-upgrade #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: coverage report | |
jobs: | |
test-coverage: | |
name: Publish coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup sonarqube | |
uses: warchant/setup-sonar-scanner@v8 | |
- name: coverage report | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run test:report | |
- run: sonar-scanner | |
-Dsonar.organization=kiegroup | |
-Dsonar.projectKey=chain-status | |
-Dsonar.projectName="Chain Status" | |
-Dsonar.sources=$GITHUB_WORKSPACE | |
-Dsonar.host.url=${{ secrets.SONAR_URL }} | |
-Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
-Dsonar.tests=test | |
-Dsonar.testExecutionReportPaths=packages/action/test-report.xml | |
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info | |
-Dsonar.exclusions=packages/action/test/**,packages/action/webpage/** | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |