Skip to content

Commit

Permalink
Add a coverage job to CI
Browse files Browse the repository at this point in the history
This new job is very barebones at the moment. It only outputs a summary
of the coverage in the terminal, since the entire coverage is a bit long
and unwieldy. Perhaps Codecov or similar can be used in the future.
  • Loading branch information
CountBleck committed Oct 8, 2023
1 parent 5fc8a8f commit 02eb21c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -127,3 +127,20 @@ jobs:
cd lib/loader
npm run asbuild
npm run test
coverage:
name: "Coverage"
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v3
- uses: dcodeIO/setup-node-nvm@master
with:
node-version: current
- name: Install dependencies
run: npm ci --no-audit
- name: Build
run: npm run build
- name: Collect coverage
run: npx c8 -r none -- npm test
- name: Output coverage summary
run: npx c8 report -r text-summary

0 comments on commit 02eb21c

Please sign in to comment.