Add codecov support

This commit is contained in:
Bill Thornton 2021-02-23 12:54:31 -05:00
parent f0db1b1ea2
commit 27edfda0b5
2 changed files with 14 additions and 1 deletions

View File

@ -30,4 +30,7 @@ jobs:
run: yarn install --frozen-lockfile
- name: Run jest
run: npx jest --coverage=false
run: npx jest
- name: Upload coverage
uses: codecov/codecov-action@v1

10
codecov.yml Normal file
View File

@ -0,0 +1,10 @@
coverage:
status:
project:
default:
threshold: 1%
if_not_found: success # no commit found? still set a success
patch:
default:
threshold: 1%
if_not_found: success