Skip to content

Commit

Permalink
ci: remove code coverage action since it's not working in PRs from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Jan 26, 2025
1 parent cbfed1d commit 19aa461
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,41 +234,3 @@ jobs:
- run: node bin/lint-staged.js --version
- run: node bin/lint-staged.js --help
- run: npm test

codecov:
name: Code Coverage
permissions:
pull-requests: write
runs-on: ubuntu-latest
needs:
- Changesets
- Commitlint
- ESLint
- test-cygwin
- test-matrix
- test-msys2
- test-node-range
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: cobertura-coverage.xml
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: cobertura-coverage.xml
badge: true
format: markdown
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
hide_and_recreate: true
hide_classify: 'OUTDATED'
path: code-coverage-results.md
# Run action again to fail PR status _after_ posting PR comment
- name: Fail PR with low coverage
uses: irongut/[email protected]
with:
filename: cobertura-coverage.xml
fail_below_min: 100

0 comments on commit 19aa461

Please sign in to comment.