Skip to content

Commit 3386325

Browse files
pysnooLabclaude
andcommitted
ci: add Supabase to e2e job so tests have a real backend
Without Supabase running, all e2e tests timeout waiting for UI elements that never render. Uses supabase/setup-cli with minimal services to keep startup fast. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b672b50 commit 3386325

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,18 @@ jobs:
5656
with:
5757
node-version: 22
5858
cache: npm
59+
- uses: supabase/setup-cli@v1
60+
with:
61+
version: latest
62+
- run: supabase start -x realtime,storage,imgproxy,inbucket,postgrest-exporter,pgadmin-schema-diff,migra,pgbouncer,logflare,edge-runtime,vector
5963
- run: npm ci
6064
- run: npx playwright install --with-deps chromium
61-
- run: npm run build
65+
- name: Build with Supabase env
66+
run: npm run build
67+
env:
68+
VITE_SUPABASE_URL: http://127.0.0.1:54321
69+
VITE_SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
6270
- run: npx playwright test
71+
env:
72+
VITE_SUPABASE_URL: http://127.0.0.1:54321
73+
VITE_SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0

0 commit comments

Comments
 (0)