From 2186cb3518d7a9589a4898014bf5b3bbe4dd59c6 Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Thu, 25 Dec 2025 20:44:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20use=20db:migrate=20in?= =?UTF-8?q?stead=20of=20db:push=20for=20test=20databases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Critical fix based on test failure analysis: - E2E tests need real migration SQL files to create tables - db:push is for development schema sync only - db:migrate runs tracked migrations with advisory locks This fixes errors: - relation "credits.balances" does not exist - relation "referrals.codes" does not exist - relation "auth.security_events" does not exist 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/daily-tests.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/daily-tests.yml b/.github/workflows/daily-tests.yml index 7b14e6ab4..62986dc04 100644 --- a/.github/workflows/daily-tests.yml +++ b/.github/workflows/daily-tests.yml @@ -93,8 +93,7 @@ jobs: working-directory: services/mana-core-auth env: DATABASE_URL: postgresql://manacore:testpassword@localhost:5432/manacore - run: | - pnpm run db:push || echo "No migrations to run" + run: pnpm run db:migrate - name: Run tests with coverage working-directory: services/mana-core-auth @@ -184,13 +183,10 @@ jobs: run: pnpm run build:packages - name: Setup databases for integration tests + working-directory: services/mana-core-auth env: DATABASE_URL: postgresql://manacore:testpassword@localhost:5432/manacore - run: | - # Setup auth database - cd services/mana-core-auth - pnpm run db:push || echo "Auth DB setup skipped" - cd ../.. + run: pnpm run db:migrate - name: Run integration tests env: