Skip to content

ci(node): add TypeScript type-check job to JS workflow#1289

Merged
chaliy merged 1 commit intomainfrom
ci/1268-js-type-check
Apr 14, 2026
Merged

ci(node): add TypeScript type-check job to JS workflow#1289
chaliy merged 1 commit intomainfrom
ci/1268-js-type-check

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 14, 2026

Summary

  • Add typecheck job to .github/workflows/js.yml that runs tsc --noEmit
  • Create tsconfig.check.json that extends tsconfig.json to also cover test files (__test__/*.spec.ts)
  • Add typecheck job to js-check gate for branch protection

Details

The Node CI now mirrors the Python CI pattern of having a dedicated lint/type-check job. The typecheck job:

  • Sets up Node.js 22 and Rust toolchain (needed for NAPI type generation)
  • Builds the native binding to generate index.d.cts type declarations
  • Runs tsc --noEmit -p tsconfig.check.json
  • Is required by the js-check gate job

Test plan

  • Job definition is valid YAML
  • tsconfig.check.json extends base config and includes test files
  • Job added to gate/required-checks

Closes #1268

Add a `typecheck` job that runs `tsc --noEmit` against all source and
test files via a new `tsconfig.check.json`.  The check config extends
the base tsconfig and additionally includes `__test__/**/*.spec.ts` so
test files are also type-checked (the base config excludes them since
they are not shipped).

The job is wired into the `js-check` gate so branch protection will
block merges when type errors are present.

Closes #1268
@chaliy chaliy merged commit 4cce414 into main Apr 14, 2026
21 checks passed
@chaliy chaliy deleted the ci/1268-js-type-check branch April 14, 2026 12:55
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.

ci(node): add TypeScript type-check job to JS workflow

1 participant