Skip to content

Commit 672410b

Browse files
committed
Add code coverage reporting
1 parent ce962cb commit 672410b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
run: npm run build
2626
- name: test
2727
if: ${{ always() }}
28-
run: npm run test
28+
run: npm run test -- --coverage
29+
- name: Codecov
30+
if: steps.test.outcome == 'success'
31+
uses: codecov/codecov-action@v2
2932
- name: lint
3033
if: ${{ always() }}
3134
run: npm run lint

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
run: npm run build
3333
- name: test
3434
if: ${{ always() }}
35-
run: npm run test
35+
run: npm run test -- --coverage
36+
- name: Codecov
37+
if: steps.test.outcome == 'success'
38+
uses: codecov/codecov-action@v2
3639
- name: lint
3740
if: ${{ always() }}
3841
run: npm run lint

0 commit comments

Comments
 (0)