From c358b5b9b751afe4d4b55be678cf315af57b397a Mon Sep 17 00:00:00 2001 From: shishantbiswas Date: Fri, 25 Sep 2026 10:14:53 +0000 Subject: [PATCH] Update app/__test__/data/postgres.test.ts --- app/__test__/data/postgres.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/__test__/data/postgres.test.ts b/app/__test__/data/postgres.test.ts index 64c1a17c..a54b20bb 100644 --- a/app/__test__/data/postgres.test.ts +++ b/app/__test__/data/postgres.test.ts @@ -39,6 +39,11 @@ async function isPostgresRunning() { describe("postgres", () => { beforeAll(async () => { + if (process.env.GITEA_ACTIONS || process.env.GITHUB_ACTIONS) { + console.log("Running in CI: Skipping manual docker run"); + return; + } + if (!(await isPostgresRunning())) { await $`docker run --rm --name bknd-test-postgres -d -e POSTGRES_PASSWORD=${credentials.password} -e POSTGRES_USER=${credentials.user} -e POSTGRES_DB=${credentials.database} -p ${credentials.port}:5432 postgres:17`; await $waitUntil("Postgres is running", isPostgresRunning, 500, 20);