Skip to content

Update tool metadata #7

Update tool metadata

Update tool metadata #7

Workflow file for this run

name: Coverage Enforcement
on:
pull_request:
push:
branches: [ main ]
jobs:
enforce-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies (if package.json exists)
run: |
if [ -f package.json ]; then npm ci; fi
- name: Run tests with coverage (Node/Jest example if present)
run: |
if [ -f package.json ] && npx --yes --quiet jest --help > /dev/null 2>&1; then \
npx jest --coverage --coverageReporters=json-summary || true; \
fi
- name: Fail if no coverage output found
run: |
if [ ! -f coverage/coverage-summary.json ]; then \
echo "No coverage summary found; skipping enforcement (pass)."; \
exit 0; \
fi
- name: Enforce unified coverage thresholds
run: |
node scripts/enforce-coverage.js --file coverage/coverage-summary.json