Skip to content

Commit

Permalink
chore: add coverage report and codecov to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Sep 23, 2021
1 parent 6d01b9b commit 800313c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"debug": "cd packages/cli && npm run debug",
"test": "npm run test --silent --workspaces --if-present",
"test:only": "npm run test --silent --workspaces --if-present",
"coverage": "nyc npm run test",
"coverage": "nyc --reporter=lcov npm run test",
"lint": "npm run lint --silent --workspaces --if-present",
"format": "prettier --write . && npm run format --silent --workspaces --if-present",
"publish": "npm publish --workspaces",
Expand Down

0 comments on commit 800313c

Please sign in to comment.