Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
ci(test): fail if tests leave files behind in the working tree (#2719)
Maximilian Roosbb92a3c446d6
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yamlindex b86f3324c..4467b404c 100644--- a/.github/workflows/ci.yaml+++ b/.github/workflows/ci.yaml@@ -105,6 +105,19 @@ jobs:- name: 🧪 Pre-merge hooksrun: wt hook pre-merge --yes insta doctest doc+ # Anything tests leave behind in the working tree is a leak we want to see+ # before it lands. `target/` is gitignored, so a normal run is clean —+ # untracked files here mean a test wrote outside its sandbox (the+ # `default_*.profraw` stray that prompted this guard is the canonical case).+ - name: 🧹 Verify clean working tree+ shell: bash+ run: |+ if [ -n "$(git status --porcelain)" ]; then+ echo "::error::tests left files behind in the working tree:"+ git status --porcelain+ exit 1+ fi+- name: 📊 Upload test timingif: always()uses: actions/upload-artifact@v7