-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codecov): set up node in workflow
- Loading branch information
1 parent
c7878c1
commit 695f7fa
Showing
2 changed files
with
47 additions
and
4 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 |
---|---|---|
@@ -1,12 +1,22 @@ | ||
name: Code coverage report | ||
name: Codecov report | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
codecov: | ||
runs-on: ubuntu-22.04 | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Upload coverage reports to Codecov | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Node 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests and collect coverage | ||
run: npm run test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.