Skip to content

Add CI: tests and static analysis on push/PR#14

Merged
IanMayo merged 1 commit into
mainfrom
claude/testing-static-analysis-ci-ozshxw
Jul 12, 2026
Merged

Add CI: tests and static analysis on push/PR#14
IanMayo merged 1 commit into
mainfrom
claude/testing-static-analysis-ci-ozshxw

Conversation

@IanMayo

@IanMayo IanMayo commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

What

Adds a GitHub Actions workflow (.github/workflows/ci.yml) that runs the project's existing quality gates on every push to main and on every pull request. There was no CI before this.

Jobs

  • Static analysis
    • npm run typechecktsc --noEmit in strict mode (the project's actual static-analysis gate).
    • Generated-types drift check — runs npm run gen and fails if src/generated differs from what's committed. Generated files are checked in and must never be hand-edited (per CLAUDE.md), so this guards against the schema and src/generated/types.ts drifting apart.
  • Tests
    • npm test — vitest (vitest run), including fixture validation and coverage-row protection.

Details

  • Node 22 (matches @types/node ^22), npm ci with npm cache.
  • concurrency cancels superseded runs on the same ref.
  • permissions: contents: read — least privilege.

Notes

The "lint" referenced in the SPEC-05 docs is the domain confidence→band-width lint (part of the knowledge service), not a code linter — no ESLint config exists in the repo, so this workflow wires up the gates that already exist rather than introducing new tooling. All three checks pass locally against the current tree.

🤖 Generated with Claude Code


Generated by Claude Code

Add a GitHub Actions workflow that runs the project's existing quality
gates on push to main and on pull requests:

- static-analysis: tsc --noEmit (strict) and a generated-types drift
  check that fails if src/generated is out of date with the schema
  (generated files are committed and must never be hand-edited)
- test: vitest (npm test)

Uses Node 22 with npm cache; concurrency cancels superseded runs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UFPpc84i8VimSTnWwGkBfW
@IanMayo IanMayo merged commit 75fc12d into main Jul 12, 2026
2 checks passed
@IanMayo IanMayo deleted the claude/testing-static-analysis-ci-ozshxw branch July 13, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants