Skip to content

fix: harden commitment creation wizard and draft recovery #1295

fix: harden commitment creation wizard and draft recovery

fix: harden commitment creation wizard and draft recovery #1295

Workflow file for this run

# .github/workflows/coverage.yml
# Runs Vitest with coverage and enforces thresholds on every PR and push to main.
name: Coverage Check
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
coverage:
name: Vitest Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test:coverage
env:
CI: true
- name: Upload coverage report
uses: actions/upload-artifact@v7
if: always()
with:
name: coverage-report
path: coverage/
retention-days: 7
openapi:
name: OpenAPI Validation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Validate OpenAPI spec
run: bash validate-openapi.sh
- name: Check API route coverage
run: bash scripts/check-route-coverage.sh