The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
ci(studio): run E2E against both Next + TanStack (stack 6/6, from #46424) (#47119)
Alaister Young55f5676d66bf
diff --git a/.github/workflows/studio-e2e-test.yml b/.github/workflows/studio-e2e-test.ymlindex 62505564f76..6ba15479c18 100644--- a/.github/workflows/studio-e2e-test.yml+++ b/.github/workflows/studio-e2e-test.yml@@ -17,6 +17,7 @@ jobs:strategy:fail-fast: falsematrix:+ framework: [next, tanstack]shardIndex: [1, 2]shardTotal: [2]outputs:@@ -27,6 +28,11 @@ jobs:id-token: writeenv:OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ # Consumed by `apps/studio/scripts/dispatch.js` to pick which framework+ # build/start scripts run. `next` keeps the existing pages-router flow;+ # `tanstack` exercises the Vite/TanStack-Start migration in parallel+ # so we catch regressions on either side per-PR.+ STUDIO_FRAMEWORK: ${{ matrix.framework }}steps:- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0@@ -110,7 +116,12 @@ jobs:- name: Build studioif: steps.filter.outputs.studio == 'true'- run: SKIP_ASSET_UPLOAD=1 NODE_ENV=test NODE_OPTIONS="--max-old-space-size=4096" pnpm run build:studio+ # `MODE=test` so the Vite build (TanStack) loads `.env.test` for env+ # resolution; Next ignores it but reads `NODE_ENV=test` for the same+ # purpose. Vite's `vite.config.ts` overrides the bundle NODE_ENV to+ # 'production' regardless of input, mirroring Next's build behaviour+ # so vitest-only constants (e.g. `API_URL`) don't bleed in here.+ run: SKIP_ASSET_UPLOAD=1 NODE_ENV=test MODE=test NODE_OPTIONS="--max-old-space-size=4096" pnpm run build:studio- name: 🚀 Run Playwright tests against local studio buildif: steps.filter.outputs.studio == 'true'@@ -121,7 +132,7 @@ jobs:if: always() && steps.filter.outputs.studio == 'true'uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:- name: blob-report-${{ matrix.shardIndex }}+ name: blob-report-${{ matrix.framework }}-${{ matrix.shardIndex }}path: e2e/studio/blob-reportretention-days: 7@@ -132,11 +143,15 @@ jobs:exit 1merge-reports:- name: 'E2E reports'+ name: 'E2E reports (${{ matrix.framework }})'# Merge reports after playwright-tests, even if some shards have failedif: ${{ !cancelled() && needs.test.outputs.tests_ran == 'true' }}needs: [test]runs-on: blacksmith-4vcpu-ubuntu-2404+ strategy:+ fail-fast: false+ matrix:+ framework: [next, tanstack]permissions:contents: writepull-requests: write@@ -153,7 +168,7 @@ jobs:uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v 5.0.0with:path: e2e/studio/blob-report- pattern: blob-report-*+ pattern: blob-report-${{ matrix.framework }}-*merge-multiple: true- name: Merge Playwright reports@@ -161,7 +176,7 @@ jobs:- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2with:- name: playwright-artifacts+ name: playwright-artifacts-${{ matrix.framework }}path: |e2e/studio/playwright-report/e2e/studio/test-results/@@ -172,7 +187,7 @@ jobs:uses: daun/playwright-report-comment@be9e270edd5ad86038604d3caa84a819a6ff6fed # v3.10.0with:report-file: e2e/studio/test-results/test-results.json- comment-title: '🎭 Playwright Test Results'+ comment-title: '🎭 Playwright Test Results (${{ matrix.framework }})'merge-results:name: 'E2E results'