Desired outcome
A GitHub Actions workflow runs lint, type check, and build on every pull request.
Why it matters
There is no .github/workflows/ directory in this repo, so nothing is verified automatically. A PR that fails next lint, breaks tsc, or does not build can be merged and only discovered at deploy time. Formatting is also unenforced even though prettier and prettier-plugin-tailwindcss are dependencies and .prettierrc.json is committed, so diffs regularly carry unrelated reformatting noise.
The sibling repo AgentPostmortem/agent-postmortem has a workable .github/workflows/ci.yml (lint and type check, format check, build with placeholder env vars) that can be adapted.
Steps
- Add
.github/workflows/ci.yml triggered on push to main and on pull_request.
- Jobs:
npm ci, then npx tsc --noEmit, npm run lint, npx prettier --check ., and npm run build.
- Use
actions/setup-node with node-version: 20 (matching the engines field) and cache: npm.
- The build needs the public env vars from
.env.example; supply harmless placeholder values in the workflow env block so no secret is required.
Claiming this
Comment below to claim it. A reply usually comes within a day.
Desired outcome
A GitHub Actions workflow runs lint, type check, and build on every pull request.
Why it matters
There is no
.github/workflows/directory in this repo, so nothing is verified automatically. A PR that failsnext lint, breakstsc, or does not build can be merged and only discovered at deploy time. Formatting is also unenforced even thoughprettierandprettier-plugin-tailwindcssare dependencies and.prettierrc.jsonis committed, so diffs regularly carry unrelated reformatting noise.The sibling repo
AgentPostmortem/agent-postmortemhas a workable.github/workflows/ci.yml(lint and type check, format check, build with placeholder env vars) that can be adapted.Steps
.github/workflows/ci.ymltriggered onpushtomainand onpull_request.npm ci, thennpx tsc --noEmit,npm run lint,npx prettier --check ., andnpm run build.actions/setup-nodewithnode-version: 20(matching theenginesfield) andcache: npm..env.example; supply harmless placeholder values in the workflowenvblock so no secret is required.Claiming this
Comment below to claim it. A reply usually comes within a day.