| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
The CI workflow skips tests when typechecking fails, preventing test failures from being reported alongside type errors.
1 open issue What changed in this PRAdds standalone TypeScript checks for the CodeQL Action and its development scripts, allowing type validation without a full build.
Changes:
| File | Description |
|---|---|
| pr-checks/tsconfig.json | Excludes main-project test files from typechecking. |
| pr-checks/package.json | Adds typecheck, test, and combined check scripts. |
| package.json | Adds the main project's no-emit typecheck command. |
| .github/workflows/pr-checks.yml | Runs the combined pr-checks checks in CI. |
Review effort: Max
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with a minor question
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
A small follow-up to #4267 (comment) which adds typecheck commands to both projects. We already invoke the TypeScript compiler under other circumstances (e.g. when compiling tests), which will perform type-checking, but having the stand-alone commands is still nice because it is faster than a build.
As a related improvement, I have excluded the main project's test files from the pr-checks project in pr-checks/tsconfig.json. The test files are not used there, add unnecessary overhead to the sub-project, and currently don't typecheck in the context of the sub-project because it uses ESM while the main project is on CJS.