Skip to content

Add CI workflow for tests, lint and build - #25

Merged
Jrl1213 merged 1 commit into
developfrom
chore/ci-workflow
Nov 10, 2026
Merged

Jrl1213 merged 1 commit into
developfrom
chore/ci-workflow

Conversation

@Jrl1213

@Jrl1213 Jrl1213 commented Nov 10, 2026

Copy link
Copy Markdown
Owner

What

A GitHub Actions workflow (.github/workflows/ci.yml) that checks the code automatically, plus a status badge at the top of the README.

When it runs: every pull request into develop, after each merge into develop (so the badge shows develop's state), and by hand from the Actions tab.

Steps (Ubuntu, Node 22 like Netlify, npm cache on):

  1. npm ci
  2. npm test (Vitest, 145 tests)
  3. npm run lint
  4. npm run build (also runs the shop config checker)
  5. npx tsc --noEmit (after the build, which writes next-env.d.ts and .next/types)

Read-only permissions; a new push to the same PR cancels the older run; 15-minute time limit.

Tested

  • Ran the same steps in a fresh clone (no .next, no next-env.d.ts): all pass. Locally that was Node 24; this PR's own CI run is the first run on Node 22.

Not in this PR

  • Making the check required before merging (branch protection) is a GitHub setting, to turn on after this is merged if wanted.

🤖 Generated with Claude Code

Runs on every pull request into develop and after each merge into it:
npm ci, tests, lint, build (which also runs the shop config checker)
and a TypeScript type check, on Node 22 like Netlify. README gets a
status badge and a line about CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jrl1213
Jrl1213 merged commit c816add into develop Nov 10, 2026
1 check passed
@Jrl1213
Jrl1213 deleted the chore/ci-workflow branch November 10, 2026 12:15
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.

1 participant