Skip to content

Commit 02eb21c

Browse files
committed
Add a coverage job to CI
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.
1 parent 5fc8a8f commit 02eb21c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,20 @@ jobs:
127127
cd lib/loader
128128
npm run asbuild
129129
npm run test
130+
coverage:
131+
name: "Coverage"
132+
runs-on: ubuntu-latest
133+
needs: check
134+
steps:
135+
- uses: actions/checkout@v3
136+
- uses: dcodeIO/setup-node-nvm@master
137+
with:
138+
node-version: current
139+
- name: Install dependencies
140+
run: npm ci --no-audit
141+
- name: Build
142+
run: npm run build
143+
- name: Collect coverage
144+
run: npx c8 -r none -- npm test
145+
- name: Output coverage summary
146+
run: npx c8 report -r text-summary

0 commit comments

Comments
 (0)