Skip to content

Add CI static checks workflow - #132

Open
finnar-bin wants to merge 2 commits into
mainfrom
chore/125-chore/125-add-ci-static-checks
Open

Add CI static checks workflow#132
finnar-bin wants to merge 2 commits into
mainfrom
chore/125-chore/125-add-ci-static-checks

Conversation

@finnar-bin

@finnar-bin finnar-bin commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds .github/workflows/static-checks.yml, a non-required PR check on pull_request → main that runs (in order) npm ci, npm run build (tsc, strict), npm run format:check (Prettier), and npm run lint (ESLint).
  • actions/checkout and actions/setup-node are pinned to commit SHAs, matching the pinning style used elsewhere in this repo (e.g. claude-auto-reviewer.yml); Node version is pinned to 18.20.4 to match the volta.node pin in package.json.
  • This is intentionally a non-required status check — it surfaces red/green on PRs but does not block merging.

Follow-up (not in this PR)

Making this check required needs a repo admin to enable it manually via the GitHub web UI: Settings → Branches → Branch protection rules on main, adding "Static Checks / checks" to the required status checks list.

Closes #125

Test plan

  • Verified npm run format:check and npm run lint currently pass locally against src/
  • Confirm the new workflow shows up as a status check on this PR

Runs npm ci, build (tsc), format:check, and lint on every PR into
main as a non-required status check. Making it required is a
follow-up for a repo admin via branch protection settings.

Closes #125

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@finnar-bin finnar-bin self-assigned this Sep 7, 2026
@finnar-bin finnar-bin added the enhancement New feature or request label Sep 7, 2026
Comment thread .github/workflows/static-checks.yml
Comment thread .github/workflows/static-checks.yml
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Code Review — ✅ No blockers · 🟡 2 warning(s) — see inline comments

- Drop the redundant npm ci: build step now runs npx tsc directly
  instead of npm run build (which itself runs npm ci && tsc).
- Scope the job to permissions: contents: read (least privilege,
  matching the pattern in claude-auto-reviewer.yml).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Code Review — ✅ No blockers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Add a build/typecheck gate on pull requests

1 participant