Collect coverage

- Add Coverage step to workflow
- Generate JSON coverage report
- Ignore coverage folder
This commit is contained in:
Rafael Bardini 2020-07-05 15:43:26 +02:00
parent 6d00bdae2b
commit 4149a6cce8
3 changed files with 7 additions and 1 deletions

View File

@ -21,4 +21,7 @@ jobs:
run: npm run lint run: npm run lint
- name: Test - name: Test
run: npm test run: npm test -- --coverage-report=json
- name: Coverage
uses: codecov/codecov-action@v1

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.nyc_output .nyc_output
coverage
node_modules node_modules
npm-debug.log npm-debug.log

View File

@ -1 +1,3 @@
.nyc_output
coverage
tap-snapshots tap-snapshots