Skip to content

Commit 6fe7f0f

Browse files
ci: upload coverage report using codecov github action
1 parent 6ab2584 commit 6fe7f0f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
node-version: lts/*
2323
- run: npm install
2424
- run: npm run test:coverage
25-
- run: npx codecov
25+
- uses: codecov/codecov-action@v3
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}
28+
directory: tests/coverage
29+
2630
release:
2731
name: release
2832
runs-on: ubuntu-latest

.github/workflows/pull-request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ jobs:
1919
node-version: lts/*
2020
- run: npm install
2121
- run: npm run test:coverage
22-
- run: npx codecov
22+
- uses: codecov/codecov-action@v3
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}
25+
directory: tests/coverage

0 commit comments

Comments
 (0)