Skip to content

chore: discrete check-only CI; local validate stays fix + verify - #5

Merged
mhweiner merged 1 commit into
mainfrom
chore/standardize-validate
Jun 17, 2026
Merged

chore: discrete check-only CI; local validate stays fix + verify#5
mhweiner merged 1 commit into
mainfrom
chore/standardize-validate

Conversation

@mhweiner

Copy link
Copy Markdown
Contributor

Summary

Brings ecswatch in line with the platform validate contract: CI never auto-fixes; local npm run validate does.

  • CI was running npm run validate, which runs eslint --fix — CI shouldn't mutate, and a fixable lint error should fail CI so it gets fixed locally first.
  • pr-check.yml and release.yml now run discrete check-only steps: lint:check, typecheck, build, test. A red run names the exact gate.
  • prepublishOnly switched from npm run validate to the same check-only chain.
  • Adds lint:check (eslint .). npm run validate stays the local fix + verify convenience (lint --fix + typecheck + build + test).

Part of standardizing validate across repos (infra #102).

Test plan

  • npm run lint:check && npm run typecheck && npm run build && npm run test pass locally (15/15 tests)
  • CI green

CI (pr-check + release) and prepublishOnly no longer run `npm run validate`
(which auto-fixes via eslint --fix). They now run discrete check-only steps
(lint:check, typecheck, build, test) so CI never mutates and a red run names
the exact gate. Adds `lint:check`; `npm run validate` remains the local
fix + verify convenience.
@mhweiner
mhweiner merged commit 2c8b55a into main Jun 17, 2026
1 check passed
@mhweiner
mhweiner deleted the chore/standardize-validate branch June 17, 2026 23:37
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