Skip to content

ci: run lint, build and tests on every PR to release - #5

Open
murdore wants to merge 1 commit into
releasefrom
ci/github-actions
Open

ci: run lint, build and tests on every PR to release#5
murdore wants to merge 1 commit into
releasefrom
ci/github-actions

Conversation

@murdore

@murdore murdore commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

The 53-test suite only ran locally — nothing stopped a regression from being merged. All three recent fix PRs were verified by hand.

Runs on every PR to release and on pushes to release:

Step Command
Lint pnpm run lint
Build pnpm run build
Test pnpm exec vitest run
Pack check npm pack --dry-run

Notes on the details:

  • pnpm pinned to 8.15.0 to match the packageManager field.
  • A global git identity is configured. The suite drives real git against temporary repositories; runners have no identity, so git commit in the fixtures would fail.
  • vitest is invoked directly rather than via pnpm test, which runs a build first and would redo the previous step.
  • npm pack --dry-run, not pnpm pack --dry-run — pnpm 8.15 rejects that flag (ERROR Unknown option: 'dry-run'), verified locally. npm is on the runner regardless.
  • concurrency cancels superseded runs on the same ref.

Verified locally: pnpm exec vitest run → 53/53, pnpm run lint → 0 errors, pnpm run build clean.

The 53-test suite only ran locally, so nothing stopped a regression from
being merged — all three of the recent fix PRs were verified by hand.

- pnpm pinned to 8.15.0 to match the packageManager field.
- A global git identity is configured because the suite drives real git
  against temporary repositories.
- vitest is invoked directly rather than through `pnpm test`, which would
  rebuild what the previous step just built.
- A final pack check catches a broken `files` list or a missing build
  artifact before it could reach the registry.
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