Update app/__test__/data/postgres.test.ts
Run Tests / test (pull_request) Successful in 7m2s

This commit is contained in:
2026-09-25 10:25:08 +00:00
parent c358b5b9b7
commit 784b881797
+4 -1
View File
@@ -8,8 +8,11 @@ import { $ } from "bun";
import { connectionTestSuite } from "data/connection/connection-test-suite"; import { connectionTestSuite } from "data/connection/connection-test-suite";
import { bunTestRunner } from "adapter/bun/test"; import { bunTestRunner } from "adapter/bun/test";
const isCI = !!(process.env.GITEA_ACTIONS || process.env.GITHUB_ACTIONS);
const credentials = { const credentials = {
host: "localhost", // Changes to "postgres" inside CI to talk directly to the Gitea service container
host: isCI ? "postgres" : "localhost",
port: 5432, port: 5432,
user: "postgres", user: "postgres",
password: "postgres", password: "postgres",