Test: validate pytest-coverage-comment dependency bumps #110
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: Jest Coverage Comment | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - test-issue-18-on-jest | |
| jobs: | |
| jest-coverage-comment: | |
| name: Jest Coverage Comment | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: NPM Cache | |
| id: npm-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm | |
| - name: Install Dependencies | |
| if: steps.npm-cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Run Tests | |
| run: npm run coverage | tee ./coverage.txt | |
| - name: Jest Coverage Comment | |
| uses: MishaKav/jest-coverage-comment@main | |
| with: | |
| hide-comment: false | |
| create-new-comment: false | |
| hide-summary: false | |
| report-only-changed-files: true | |
| # title: My Jest Coverage Comment | |
| # summary-title: My Summary Title | |
| # badge-title: Coverage | |
| # hide-comment: false | |
| # hide-summary: false | |
| # junitxml-title: My Junit Title | |
| # junitxml-path: ./coverage/junit.xml | |
| # coverage-title: My Coverage Title | |
| coverage-path: ./coverage.txt |