Skip to content

Commit 8906c42

Browse files
committed
chore(ci): create the ACL test database in the projection trigger step itself
1 parent 20bb9fe commit 8906c42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/test-build.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ jobs:
303303
working-directory: packages/db
304304
env:
305305
KNOWLEDGE_ACL_TEST_DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/sim_acl_test
306-
run: bunx vitest run script-migrations/0021_embedding_search_connector.postgres.test.ts
306+
run: |
307+
bun -e 'import postgres from "postgres"; const sql = postgres(process.env.DATABASE_URL); const [row] = await sql`SELECT 1 FROM pg_database WHERE datname = ${"sim_acl_test"}`; if (!row) await sql`CREATE DATABASE sim_acl_test`; await sql.end()'
308+
bunx vitest run script-migrations/0021_embedding_search_connector.postgres.test.ts
307309
308310
test-build:
309311
name: Lint and Test

0 commit comments

Comments
 (0)