From 09ed46b9975587b10eeba115e1c8daa61fe41884 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 8 May 2026 16:26:43 +0700 Subject: [PATCH] ci: gate Claude Code install to Linux server-tests Installing claude-code globally on the Windows server-tests runner exposed 12 pre-existing Windows-specific test failures that were silently skipped before (rmdir EBUSY during cleanup, .CMD spawn EINVAL via the SDK, plus the launch-regression test that asserts claude is *not* on PATH). The Linux e2e tests (model-catalog, live-preferences, models) are the only ones that needed the binary to flip isAvailable() true; none of those run on Windows. Skip the install on Windows so those Windows compatibility gaps stay surfaced separately and don't block the SDK upgrade. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc23fb704..d8edabf5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,7 +88,8 @@ jobs: - name: Install dependencies run: npm install - - name: Install Claude Code CLI for provider tests + - name: Install Claude Code CLI for provider tests (Linux only) + if: runner.os == 'Linux' run: npm install -g @anthropic-ai/claude-code - name: Build highlight dependency