-
-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove code coverage action since it's not working in PRs from forks
- Loading branch information
Showing
1 changed file
with
0 additions
and
38 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |