Skip to content

Commit

Permalink
ci: restore coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Jul 11, 2024
1 parent 7891010 commit 0a3fe7c
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,25 @@ jobs:
run: |
npm ci
npm run lint
# npm run test
# - name: Save code coverage to artifact
# uses: actions/upload-artifact@v4
# with:
# name: code-coverage
# path: "coverage/clover.xml"
# retention-days: 5
# upload-coverage:
# name: Upload code coverage
# runs-on: ubuntu-latest
# needs:
# - lint-test
# steps:
# - name: Fetch code coverage artifact
# uses: actions/download-artifact@v4
# with:
# name: code-coverage
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true
npm run test
- name: Save code coverage to artifact
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: "coverage/clover.xml"
retention-days: 5
upload-coverage:
name: Upload code coverage
runs-on: ubuntu-latest
needs:
- lint-test
steps:
- name: Fetch code coverage artifact
uses: actions/download-artifact@v4
with:
name: code-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

0 comments on commit 0a3fe7c

Please sign in to comment.