mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
🐛 fix(ci): use db:migrate instead of db:push for test databases
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 <noreply@anthropic.com>
This commit is contained in:
parent
dfdd04593c
commit
2186cb3518
1 changed files with 3 additions and 7 deletions
10
.github/workflows/daily-tests.yml
vendored
10
.github/workflows/daily-tests.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue