Skip to content

Add coverage report generation to CI workflow #71

Add coverage report generation to CI workflow

Add coverage report generation to CI workflow #71

Workflow file for this run

name: Run Jest Tests
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Run Jest tests
run: npx jest --verbose ./test/unit/ --coverage
- name: Publish coverage report
uses: MishaKav/jest-coverage-comment@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
coverage-summary-path: ./coverage/coverage-summary.json
title: Coverage Report
remove-links-to-files: false
remove-links-to-lines: true