feat: EBE-565 Report Export page #844
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
| name: 'coverage' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - uat | |
| - develop | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - synchronize | |
| jobs: | |
| sonarcloud: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install dependencies | |
| run: | | |
| corepack enable | |
| yarn install --immutable --check-cache || yarn install --force | |
| - name: Genera client API | |
| run: yarn generate | |
| - name: Jest Coverage Report | |
| uses: ArtiomTr/jest-coverage-report-action@v2.0-rc.6 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| test-script: yarn test:coverage | |
| threshold: 90 | |
| annotations: none | |
| package-manager: yarn | |
| - name: SonarCloud Scan | |
| uses: SonarSource/sonarcloud-github-action@v5.0.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| with: | |
| args: > | |
| -Dsonar.organization=${{ vars.SONARCLOUD_ORG }} | |
| -Dsonar.projectKey=${{ vars.SONARCLOUD_PROJECT_KEY }} | |
| -Dsonar.projectName="${{ vars.SONARCLOUD_PROJECT_NAME }}" |