fix(test): Use correct CI detection for Woodpecker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user