Summary
CI pipeline is functional but missing standard hardening steps.
Missing steps
npm audit — catch known vulnerabilities in dependencies
- Test coverage — add coverage reporting and enforce a threshold (e.g., 60% to start)
- Dependency caching — already uses
cache: npm in setup-node ✓
- Build artifact check — verify
npm run build produces valid dist/
Proposed additions to ci.yml
- name: Security audit
run: npm audit --audit-level=moderate
- name: Test with coverage
run: npx c8 tsx --test src/**/*.test.ts
- name: Check coverage threshold
run: npx c8 check-coverage --lines 60 --branches 50