Repository navigation
done-check: recognise Bazel, Nx and Turborepo checks - #5
Open
haseemajaz wants to merge 2 commits into
Open
haseemajaz wants to merge 2 commits into
haseemajaz wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4
bazel test //...,npx nx test appandturbo run testdid not count as a check, so a turn that only ran one of them was reported unverified.This adds four patterns to CHECK_PATTERNS in mods/done-check/hooks/core.ts: bazel with test, build, run and coverage; nx with test, build, lint and e2e, plus nx run with a project task; and turbo with an optional run and test, build, lint, check and typecheck. Each pattern follows the existing style, with the usual segment-start prefix and an optional JS runner (npx, pnpm exec, yarn, bunx) for nx and turbo.
Tests: added counting lines for
bazel test //...,npx nx test app,nx run app:test,turbo run testandnpx turbo run build, and look-alike lines forgrep "bazel test //...",grep "nx test"andgrep "turbo run test", in mods/done-check/tests/core.test.ts. The look-alikes are skipped by MENTION_ONLY and cannot match inside quotes.What this does not cover:
nx affected --target=testandnx run-many --target=testtake a flag rather than a subcommand, so they are left out of this change and could follow separately.Test results: the repo's own commands (
claude plugin test mods/done-check,claude plugin validate --strict .) need the Claude Code CLI, which was not installed on the machine used to prepare this PR, so they could not be run. Instead, the actualcheckCommandfrom core.ts was run directly (via tsx) against the full yes/no arrays in tests/core.test.ts: 30 yes lines and 17 no lines, all pass, including the 5 new counting lines and 3 new look-alike lines. An extra check also passed: bazel test/build/coverage, turbo test, and pnpm exec nx lint all count, while bazel query, bazel clean, and nx affected --target=test do not.