Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Build dev-detach before tests (fix for workspace package move) (#126)

Maximilian Roos6acf3bc08203
diff --git a/.config/wt.toml b/.config/wt.toml
index 9f15ad393..322b49030 100644
--- a/.config/wt.toml
+++ b/.config/wt.toml
@@ -41,5 +41,7 @@ pre-commit = "pre-commit run --all-files"
# Note: This must come AFTER post-merge because [pre-merge] starts
# a TOML table section, and everything after it would be inside that section
[pre-merge]
+# Build test helpers first (dev-detach is a separate workspace member, not auto-built by cargo test)
+build = "cargo build -p dev-detach"
insta = "NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --dnd --check --features shell-integration-tests"
doc = "RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps"
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index c1c8c7102..35b71913d 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -61,6 +61,12 @@ jobs:
echo "Using Git Bash for Windows tests"
shell: pwsh
+ - name: 🔧 Build test helpers
+ uses: clechasseur/rs-cargo@v4
+ with:
+ command: build
+ args: -p dev-detach
+
- name: 🏭 Compile
uses: clechasseur/rs-cargo@v4
with: