This repository was archived by the owner on Jul 24, 2026. It is now read-only.
ci: add a vitest gate (full npm test) alongside the nix flake check - #100
Merged
Conversation
convoy CI ran only `nix flake check` — build + help/completions/typecheck + the completions-parity test, but NOT the full vitest suite (most of it shells out to `git worktree` / spawns bin/convoy, awkward in the hermetic nix sandbox). That left a gap: a red vitest test could ship green. Adds a Test workflow that runs `npm test` on a normal runner, gated on PRs + push-to-main. Modeled on pty's #114 test.yml, adapted for convoy's one real difference — the file:../ sibling deps (@compoundingtech/pty + smalltalk): the siblings are checked out beside convoy and built (convoy imports their dist/), zsh + fish are installed so the completion syntax checks actually run (rather than skip), then `npm install` links the siblings and `npm test` runs the suite. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCzqQKSpPiNX2ketyubByS
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What
Adds a vitest CI gate — a
Testworkflow that runs the fullnpm test(vitest) on PRs + push-to-main, closing the gap you flagged: convoy CI ran onlynix flake check(build + help/completions/typecheck + the completions-parity test), never the full vitest suite. So a red vitest test could ship green. (The gap pty closed in #114.)Why a separate workflow, not a flake check
Most of convoy's vitest suite shells out to
git worktreeand spawns the realbin/convoy— awkward in the hermetic nix sandbox, which is why only the pure completions-parity test lives in the flake today. A normal runner handles the shell-outs cleanly.nix.ymlstays as-is; this runs alongside it.The convoy-specific wrinkle (vs pty's #114)
convoy depends on
@compoundingtech/pty+@compoundingtech/smalltalkviafile:../<sibling>paths (the flake links them from flake inputs). So the workflow:dist/;npm install(notnpm ci) for convoy — the sibling repos float ahead of convoy's pinned lockfile, sonpm ciwould break on any sibling version bump;cutWorktreetestsgit commitin throwaway repos);bin/convoy's.tstype-stripping at load; matches the flake'snodejs_24).The workflow validates itself on this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MCzqQKSpPiNX2ketyubByS