Skip to content

Commit 2fe0c3a

Browse files
committed
ci: fail CI if coverage is not 100% but still upload to codecov
1 parent 20a8f55 commit 2fe0c3a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
run: npm run testonly:cover
9898

9999
- name: Upload coverage to Codecov
100+
if: ${{ always() }}
100101
uses: codecov/codecov-action@v1
101102
with:
102103
file: ./coverage/tests/coverage-final.json

.nycrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ temp-directory: 'coverage/tests'
1919
report-dir: 'coverage/tests'
2020
skip-full: true
2121
reporter: [json, html, text]
22+
check-coverage: true
23+
branches: 100
24+
lines: 100
25+
functions: 100
26+
statements: 100

0 commit comments

Comments
 (0)