Skip to content

Merge pull request #241 from rozemary2026-a11y/fix/issue-209-ci-paral… #54

Merge pull request #241 from rozemary2026-a11y/fix/issue-209-ci-paral…

Merge pull request #241 from rozemary2026-a11y/fix/issue-209-ci-paral… #54

Workflow file for this run

name: Coverage Gate
on:
pull_request:
push:
branches:
- main
- develop
permissions:
contents: read
jobs:
coverage:
name: Enforce code coverage thresholds
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test:coverage
- name: Enforce coverage thresholds
run: npm run coverage:enforce
- name: Upload coverage artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
coverage/
if-no-files-found: warn