Skip to content

Introduce Package-Wide Unit Testing & Reporting #8

Introduce Package-Wide Unit Testing & Reporting

Introduce Package-Wide Unit Testing & Reporting #8

Workflow file for this run

name: CI Testing & Coverage
on:
pull_request:
branches: [ "main" ]
jobs:
coverage:
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Determine PR Number
uses: jwalton/gh-find-current-pr@v1
id: findPr
- name: Install Dependencies
run: npm ci
- name: Execute Tests & Report Coverage w/ Failures
uses: ArtiomTr/jest-coverage-report-action@v2
with:
annotations: failed-tests
custom-title: CI Testing Coverage
prnumber: ${{ steps.findPr.outputs.number }}
test-script: npm run test:ci