This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user