Skip to content

#761 CI: add Postgres service and run DB migrations before backend tests - #794

Open
Emelie-Dev wants to merge 6 commits into
Pulsefy:mainfrom
Emelie-Dev:issue-761-ci-db-migrations
Open

#761 CI: add Postgres service and run DB migrations before backend tests#794
Emelie-Dev wants to merge 6 commits into
Pulsefy:mainfrom
Emelie-Dev:issue-761-ci-db-migrations

Conversation

@Emelie-Dev

Copy link
Copy Markdown

closes #761

…kend tests

- Add postgres:15 service container with health checks to backend.yml and ci.yml
- Apply all supabase/migrations/*.sql files in order via psql before tests
- Apply module-level migrations (crash-reporting, branch-preview)
- Add migration verification step (list tables/functions)
- Enable unit, integration, and e2e test steps with DATABASE_URL + SUPABASE_* env vars injected
- Update jest.setup.ts to prefer CI-provided env vars with safe defaults for local dev
- Install postgresql-client and Supabase CLI in CI runners
@drips-wave

drips-wave Bot commented Jul 31, 2026

Copy link
Copy Markdown

@Emelie-Dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@Emelie-Dev

@Cedarich

Cedarich commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

@Emelie-Dev

@Cedarich

Cedarich commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

@Emelie-Dev

@Cedarich

Cedarich commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

@Emelie-Dev

@Cedarich

Cedarich commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Kindly resolve conflicts @Emelie-Dev

@Emelie-Dev

Copy link
Copy Markdown
Author

@Cedarich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: backend tests run without running DB migrations or provisioning a database

2 participants