From d85ef1908a7eba453efe8bc9257abdf1a82f90c0 Mon Sep 17 00:00:00 2001 From: CaramelizedCUDA <1418451053@qq.com> Date: Mon, 12 Oct 2026 21:55:09 +0800 Subject: [PATCH] ci: Bun on every test runner, and the plugin stderr tests on Windows The end-to-end plugin test needs bun on PATH, and setup-bun only ran on Linux, so macOS skipped it (run 38250283461: "no bun on PATH"). Windows skips the Test step, so the stderr tests were only compiled there. Both now run: setup-bun on all three runners, and a Windows step that runs the two stderr tests with -v, so a skip shows in the log. Run before this commit: the change is CI-only and is checked by the workflow run on this branch. Reviewed for magpie: the workflow change only drops setup-bun's Linux-only condition (same pinned oven-sh/setup-bun@v2, bun 1.4.2) and adds one Windows step running the two tests; no new trigger, permission, secret or action. The contributor's run 38263044397 shows both tests passing on windows-latest with bun 1.4.2, and macOS green with bun installed. Co-Authored-By: Claude Code --- .github/workflows/test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90e6de917..6268e6472 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,6 @@ jobs: run: go vet -tags "${{ steps.tags.outputs.tags }}" ./... - uses: oven-sh/setup-bun@v2 - if: runner.os == 'Linux' with: bun-version: 1.4.2 @@ -70,6 +69,15 @@ jobs: if: runner.os != 'Windows' run: go test -tags "${{ steps.tags.outputs.tags }}" ./... + # Windows skips the Test step above, so the two plugin stderr tests run + # here. The end-to-end one needs bun on PATH; without it it skips. + - name: Plugin stderr tests (Windows) + if: runner.os == 'Windows' + shell: bash + run: | + bun --version + go test -v -count=1 ./internal/plugin/ -run '^(TestHostStartsPastAnOverlongStderrLine|TestDrainStderrKeepsTheChildGoing)$' + - name: Production plugin flow if: runner.os == 'Linux' timeout-minutes: 10