From 90ce1749349509d82d05eb6ded01fdad7406833e Mon Sep 17 00:00:00 2001 From: Marco de Jongh Date: Sat, 14 Feb 2026 11:19:30 +0100 Subject: [PATCH] Use pre-built dev-db image for E2E tests in CI The E2E tests were using a bare postgres-postgis image with no board data, causing tests to fail when navigating to board pages expecting climb cards and search results. Switch to the pre-built boardsesh-dev-db image that already contains all Kilter/Tension data with migrations applied. Also fix the migration working directory from packages/web to packages/db where drizzle.config.ts actually lives. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/e2e-tests.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index a40123db..84c9f75a 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -23,11 +23,11 @@ jobs: services: postgres: - image: ghcr.io/marcodejongh/boardsesh-postgres-postgis:latest + image: ghcr.io/marcodejongh/boardsesh-dev-db:latest env: POSTGRES_USER: postgres - POSTGRES_PASSWORD: postgres - POSTGRES_DB: boardsesh_test + POSTGRES_PASSWORD: password + POSTGRES_DB: main ports: - 5432:5432 options: >- @@ -35,6 +35,7 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + --shm-size=256m steps: - uses: actions/checkout@v4 @@ -64,13 +65,13 @@ jobs: # Provide minimal env vars needed for build NEXTAUTH_SECRET: test-secret-for-ci NEXTAUTH_URL: http://localhost:3000 - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/boardsesh_test + DATABASE_URL: postgresql://postgres:password@localhost:5432/main - name: Run database migrations run: npx drizzle-kit migrate - working-directory: packages/web + working-directory: packages/db env: - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/boardsesh_test + DATABASE_URL: postgresql://postgres:password@localhost:5432/main - name: Start server and run E2E tests run: | @@ -79,7 +80,7 @@ jobs: npm run test:e2e --workspace=@boardsesh/web env: PLAYWRIGHT_TEST_BASE_URL: http://localhost:3000 - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/boardsesh_test + DATABASE_URL: postgresql://postgres:password@localhost:5432/main NEXTAUTH_SECRET: test-secret-for-ci NEXTAUTH_URL: http://localhost:3000