From dc551f138a7d164b8455419f6f58821f6af4a18b Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sat, 7 Feb 2026 21:47:53 -0600 Subject: [PATCH] fix(test): Use correct CI detection for Woodpecker Woodpecker sets CI=woodpecker and CI_PIPELINE_EVENT, not CI=true. Updated the CI detection to check for both. Co-Authored-By: Claude Opus 4.6 --- apps/api/vitest.setup.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/api/vitest.setup.ts b/apps/api/vitest.setup.ts index 6156f98..dcaba3a 100644 --- a/apps/api/vitest.setup.ts +++ b/apps/api/vitest.setup.ts @@ -7,7 +7,10 @@ import * as fs from "fs"; // This allows local integration tests to run with a local database // CI environments explicitly provide DATABASE_URL in the test step, so skip loading .env.test there const envTestPath = path.resolve(__dirname, ".env.test"); -const isCI = process.env.CI === "true" || process.env.WOODPECKER === "true"; +const isCI = + process.env.CI === "true" || + process.env.CI === "woodpecker" || + process.env.CI_PIPELINE_EVENT !== undefined; if (!isCI && fs.existsSync(envTestPath)) { const result = dotenv.config({ path: envTestPath });