Skip to content

Commit

Permalink
build: code coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck committed Jan 15, 2025
1 parent 97a6cd8 commit aa9d54a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,16 @@ jobs:
- name: Test
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: npm run test
JEST_JUNIT_CLASSNAME: "{filepath}"
run: npm run test -- --coverage --reporters=jest-junit

- name: Run codecov
uses: codecov/codecov-action@v3
with:
directory: ./coverage

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"typedoc-plugin-markdown": "^4.3.2",
"typedoc-plugin-remark": "^1.2.0",
"typescript": "5.5.4"
},
"devDependencies": {
"jest-junit": "16.0.0"
}
}

0 comments on commit aa9d54a

Please sign in to comment.