From 0ccc5d5d2609f502644fc49b2efe2f2e8e063f80 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 31 May 2026 20:22:54 +0200 Subject: [PATCH] Install all workspaces in the server CI job so SWC's native binary is present The server vitest config transforms via unplugin-swc, which needs @swc/core's platform-specific native binary. A workspace-scoped 'npm ci --workspace server' skips that optional dependency, so vitest failed to load the config on the Linux runner. Use a full 'npm ci'. --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e2225ad..eab0346e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,7 +49,9 @@ jobs: cache-dependency-path: package-lock.json - name: Install dependencies - run: npm ci --workspace shared && npm ci --workspace server + # Full install (not workspace-scoped) so @swc/core's platform-specific + # native binary is present — server tests transform via unplugin-swc. + run: npm ci - name: Build shared run: npm run build --workspace=shared