You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: add local CI script and format:check (#965)
## Summary
- Adds `.github/workflows/ci-local.sh` to run the full CI suite locally
before pushing — validates Node version against `.nvmrc`, exports
`CI=true`, and runs the same steps as GitHub Actions (`test`, `fuzz`,
`lint`, `test:types`, `format:check`)
- Adds `format:check` npm script and wires it into the `lint` job in
`test-node.js.yml`
- Ignores generated files that would otherwise cause false positives:
`examples/typescript-node-es6/dist` (from `test:types`) in
`.eslintignore` and `.prettierignore`; `test/error/reported.json` in
`.prettierignore`
- Fixes `test:types` failing locally when root `node_modules` is
installed: restricts `typeRoots` in
`examples/typescript-node-es6/tsconfig.json` to the example's own
`node_modules` so TypeScript 3 doesn't pick up `@types/yargs` (which
uses TS 4.1+ template literal syntax)
- Script cleans up generated test artefacts (`test/error/reported.json`,
`test/errors/reported.json`) on start to prevent cross-branch
contamination
## Test plan
- [x] CI passes on this PR
- [ ] `bash .github/workflows/ci-local.sh` passes locally on `master`
after merge
0 commit comments