Skip to content

Commit

Permalink
ci: add codecov.io coverage for mocha
Browse files Browse the repository at this point in the history
Bug: #17
  • Loading branch information
thiagowfx committed Jun 29, 2023
1 parent 85e2add commit a19869a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ jobs:
run: du -sh lib/iife/mapperTab.js
- name: Run unit tests
run: npm run unit
- name: Run coverage
run: npx nyc --reporter=lcov npm run unit && npx codecov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ wptreport*.json
.wireit/
MANIFEST.json
*.png
coverage/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tests/__pycache__
wpt/
wpt-metadata/*/
CHANGELOG.md
coverage/
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"scripts": {
"build": "wireit",
"clean": "rimraf lib .eslintcache .wireit",
"coverage": "nyc mocha",
"e2e-headful": "wireit",
"e2e-headless": "wireit",
"e2e": "npm run e2e-headless --",
Expand Down

0 comments on commit a19869a

Please sign in to comment.