Introduce Package-Wide Unit Testing & Reporting #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |