From 0cdbbd64ba7b4f208c046cd25f80617c4c128966 Mon Sep 17 00:00:00 2001 From: Henri Salmi Date: Sat, 17 Oct 2026 15:47:45 +0300 Subject: [PATCH] fix: apply current migrations in e2e jobs pnpm run setup resets the database to committed migrations only, so e2e ran against a schema without migrations/current/. Any PR whose frontend queries a field added there failed every spec with a GraphQL 400. Run watch --once after setup in each e2e job. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/e2e.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 822ec85a..b64b1e1e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -44,9 +44,12 @@ jobs: uses: ./.github/actions/install-pg-dump - name: Setup environment and database + # `setup` resets the DB to committed migrations only; `watch --once` + # applies migrations/current/ on top, as `pnpm dev` does locally. run: | cp .env.ci .env CONFIRM_DROP=1 pnpm run setup + pnpm --filter @app/db run watch --once - name: Build server-side TypeScript # Mirror `pnpm dev`'s preamble: build @app/graphql (codegen + tsc) and @@ -184,6 +187,7 @@ jobs: echo "KEYCLOAK_CLIENT_SECRET=ci" } >> .env CONFIRM_DROP=1 pnpm run setup + pnpm --filter @app/db run watch --once - name: Build server-side TypeScript run: | @@ -298,6 +302,7 @@ jobs: echo "KEYCLOAK_CLIENT_SECRET=ilmo-ci-secret" } >> .env CONFIRM_DROP=1 pnpm run setup + pnpm --filter @app/db run watch --once - name: Build server-side TypeScript run: |