Skip to content

Commit f1f3e43

Browse files
committed
build: CI coverage
1 parent 67e7c5e commit f1f3e43

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ jobs:
1515
- name: TypeScript validity
1616
run: npm run test:typescript
1717
- name: Coverage
18-
run: npx c8 mocha
18+
run: npx c8 --reporter cobertura --reporter text mocha
19+
- name: Upload coverage
20+
uses: codecov/codecov-action@v2
21+
with:
22+
token: ${{ secrets.CODECOV_TOKEN }}
23+
files: ./coverage/cobertura-coverage.xml
24+
flags: unittests
25+
fail_ci_if_error: true

0 commit comments

Comments
 (0)