Skip to content

Commit ae30a5b

Browse files
committed
add codecov upload workflow
1 parent bbdf55f commit ae30a5b

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: coverage
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
codecov:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .node-version
21+
cache: npm
22+
23+
- run: npm ci
24+
25+
- name: Run tests
26+
run: npx jest --coverage
27+
28+
- name: Upload results to Codecov
29+
uses: codecov/codecov-action@v4
30+
with:
31+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)