Skip to content

Commit

Permalink
Merge pull request #535 from JKRhb/coverage
Browse files Browse the repository at this point in the history
chore: add code coverage with nyc and codecov.io
  • Loading branch information
relu91 authored Sep 29, 2021
2 parents 8e18c2f + 095242d commit a2703bc
Show file tree
Hide file tree
Showing 5 changed files with 2,405 additions and 153 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ jobs:
- name: Build
run: npm run build

- name: Test
run: npm run test
- name: Test with coverage report
run: npm run coverage

- name: Upload to codecov.io
uses: codecov/codecov-action@v2

eslint:
name: eslint
Expand Down
3 changes: 3 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@istanbuljs/nyc-config-typescript"
}
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
package-lock.json
**/dist
coverage
.nyc_output
Loading

0 comments on commit a2703bc

Please sign in to comment.