Skip to content

Commit e47c46d

Browse files
committed
chore(ci): upload code coverage reports during release too
1 parent 7572519 commit e47c46d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ jobs:
3030
run: npm run lint
3131
- name: Check types
3232
run: npm run typecheck
33-
- name: Run tests
34-
run: npm run test
33+
- name: Run tests and collect coverage
34+
run: npm run coverage
35+
- name: Upload code coverage
36+
uses: codecov/codecov-action@v2
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
39+
directory: coverage
40+
flags: unittests
41+
fail_ci_if_error: true
42+
verbose: true
3543

3644
release:
3745
name: release

0 commit comments

Comments
 (0)