Skip to content

Add CI steps: npm audit, test coverage threshold, dependency caching #30

@that-github-user

Description

@that-github-user

Summary

CI pipeline is functional but missing standard hardening steps.

Missing steps

  1. npm audit — catch known vulnerabilities in dependencies
  2. Test coverage — add coverage reporting and enforce a threshold (e.g., 60% to start)
  3. Dependency caching — already uses cache: npm in setup-node ✓
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions