Skip to content

chore(deps-dev): bump the development-dependencies group across 1 directory with 6 updates #39

chore(deps-dev): bump the development-dependencies group across 1 directory with 6 updates

chore(deps-dev): bump the development-dependencies group across 1 directory with 6 updates #39

Workflow file for this run

name: Code Coverage
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
coverage:
name: Coverage Check (≥80% lines/functions/statements, ≥70% branches)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build TypeScript
run: npm run build
- name: Run tests with coverage (enforce thresholds)
run: npm run test:coverage:check
- name: Upload coverage report
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/
retention-days: 7
- name: Write coverage summary
if: always()
run: |
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Thresholds: **lines ≥ 80%**, **functions ≥ 80%**, **statements ≥ 80%**, **branches ≥ 70%**" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
npx c8 report --reporter=text 2>/dev/null || echo "Coverage report not available"
npx c8 report --reporter=text 2>/dev/null >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY