Merge pull request #110 from kiegroup/gha-upgrades #42
This file contains hidden or 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=kiegroup_build-chain-configuration-reader | |
| -Dsonar.projectName="Build Chain Configuration Reader" | |
| -Dsonar.sources=$GITHUB_WORKSPACE | |
| -Dsonar.host.url=${{ secrets.SONAR_URL }} | |
| -Dsonar.login=${{ secrets.SONAR_TOKEN }} | |
| -Dsonar.tests=test | |
| -Dsonar.testExecutionReportPaths=test-report.xml | |
| -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info | |
| -Dsonar.exclusions=test/**,**/__mocks__/**,jest.config.ts | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |