Skip to content

Commit

Permalink
update unit_test_coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
riddhi-desai committed Jun 17, 2024
1 parent 5df19e8 commit 6d43a0b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/unit_test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js 14.x
- name: Use Node.js 18.x
uses: actions/setup-node@v2-beta
with:
node-version: 14.x
node-version: 18.x

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
run: npm run-script coverage

- name: Store the coverage report as an artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
Expand All @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download coverage artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: coverage

Expand All @@ -87,12 +87,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download coverage artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: coverage

- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
file: lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 6d43a0b

Please sign in to comment.