Skip to content

done-check: recognise Bazel, Nx and Turborepo checks - #5

Open
haseemajaz wants to merge 2 commits into
zed-dz:mainfrom
haseemajaz:done-check/bazel-nx-turbo-checks
Open

haseemajaz wants to merge 2 commits into
zed-dz:mainfrom
haseemajaz:done-check/bazel-nx-turbo-checks

Conversation

@haseemajaz

Copy link
Copy Markdown

Fixes #4

bazel test //..., npx nx test app and turbo run test did 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 test and npx turbo run build, and look-alike lines for grep "bazel test //...", grep "nx test" and grep "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=test and nx run-many --target=test take 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 actual checkCommand from 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.

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.

done-check: recognise Bazel, Nx and Turborepo checks

1 participant