Skip to content

Commit ef1b739

Browse files
authored
ci: start only Supabase Postgres for 3.x integration tests (#18976)
Written by AI The 3.x integration tests connect directly to Supabase Postgres on port 54322, but CI currently starts the full local Supabase stack. Starting only Postgres avoids downloading and running unused service images and reduces runner resource use. This brings the existing main-branch CI approach to 3.x. The CI path filter now treats changes to the service action as build changes so this configuration can be tested in pull requests. Validation: the three `int-supabase` shards passed their `Start services` and `Integration Tests` steps in a temporary private 3.x CI run. `git diff --check` passed. Fix on main: #16854
1 parent e6f7db8 commit ef1b739

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/actions/start-services/action.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,6 @@ runs:
9595
shell: bash
9696
run: |
9797
supabase init
98-
supabase start
98+
# Integration tests connect directly to Postgres on port 54322.
99+
# Start only the database to avoid pulling unused service images.
100+
supabase start -x edge-runtime,studio,postgres-meta,logflare,vector,imgproxy,storage-api,gotrue,realtime,postgrest,kong,mailpit,supavisor

‎.github/workflows/main.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
filters: |
4545
needs_build:
4646
- '.github/workflows/main.yml'
47+
- '.github/actions/start-services/**'
48+
- '.github/actions/setup/**'
4749
- 'packages/**'
4850
- 'test/**'
4951
- 'pnpm-lock.yaml'

0 commit comments

Comments
 (0)