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 <noreply@anthropic.com>
This commit is contained in:
CaramelizedCUDA
2026-10-12 23:33:56 +08:00
committed by yetone
co-authored by Claude Code
parent 3f5c3b0553
commit d85ef1908a
+9 -1
View File
@@ -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