Skip to content

Commit 52d0220

Browse files
Rollback E2E build
1 parent 40faeb7 commit 52d0220

File tree

1 file changed

+19
-48
lines changed

1 file changed

+19
-48
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 19 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,41 @@ on:
88

99
jobs:
1010
e2e:
11-
if: |
12-
contains(github.event.head_commit.message, 'E2E')
13-
|| contains(github.event.pull_request.title, 'E2E')
14-
|| contains(github.event.pull_request.body, 'E2E')
1511
runs-on: ubuntu-latest
1612
concurrency:
1713
group: ${{ github.workflow }}-${{ github.ref }}
1814
cancel-in-progress: true
1915

2016
steps:
21-
- name: 📥 Checkout repository
22-
uses: actions/checkout@v4
23-
24-
- name: ⚙️ Setup Node.js
25-
uses: actions/setup-node@v4
26-
with:
27-
node-version: 20
28-
cache: npm
29-
30-
- name: 📦 Install dependencies
31-
run: npm ci
32-
33-
# ▸ tiny helper script prints which Rollup version we’re about to pin
34-
- name: 🔍 Show Rollup version
35-
run: |
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with: { node-version: 20, cache: npm }
20+
- run: npm ci
21+
- run: |
3622
node - <<'NODE'
3723
const v = require('./package.json').devDependencies.rollup ?? 'latest';
38-
console.log('ℹ️ Installing native Rollup helper for', v);
24+
console.log(' Installing native Rollup helper for', v);
3925
NODE
26+
- run: npm install --no-save @rollup/rollup-linux-x64-gnu@$(node -p "require('./package.json').devDependencies.rollup || '4'")
4027

41-
- name: 🔧 Install Rollup native helper
42-
run: |
43-
npm install --no-save \
44-
@rollup/rollup-linux-x64-gnu@$(node -p "require('./package.json').devDependencies.rollup || '4'")
28+
- uses: supabase/setup-cli@v1
29+
with: { version: 2.24.3 }
4530

46-
- name: 🛠️ Setup Supabase CLI
47-
uses: supabase/setup-cli@v1
48-
with:
49-
version: 2.24.3
50-
51-
- name: 🚀 Start local Supabase
31+
- name: Start Supabase
5232
env: { SUPABASE_TELEMETRY_DISABLED: "1" }
5333
run: supabase start &
5434

55-
- name: ⏳ Wait for Supabase (≤180 s)
56-
run: npx --yes wait-on \
57-
tcp:127.0.0.1:54321 tcp:127.0.0.1:54322 --timeout 280000
58-
59-
- name: 🔑 Export Supabase env vars
60-
run: |
61-
echo "SUPABASE_URL=http://127.0.0.1:54321" >> "$GITHUB_ENV"
62-
echo "SUPABASE_ANON_KEY=$(supabase status -o env | grep SUPABASE_ANON_KEY | cut -d= -f2)" >> "$GITHUB_ENV"
35+
- name: Wait for Supabase (≤180 s)
36+
run: npx --yes wait-on tcp:127.0.0.1:54321 tcp:127.0.0.1:54322 --timeout 180000
6337

64-
- name: 🛜 Install Playwright browsers + deps
65-
run: npx playwright install --with-deps
38+
- run: echo "SUPABASE_URL=http://127.0.0.1:54321" >> $GITHUB_ENV
39+
- run: |
40+
echo "SUPABASE_ANON_KEY=$(supabase status -o env | grep SUPABASE_ANON_KEY | cut -d= -f2)" >> $GITHUB_ENV
6641
67-
- name: 🧪 Run Playwright E2E (local)
68-
run: npm run e2e:local
42+
- run: npx playwright install --with-deps
43+
- run: npm run e2e:local
6944
env: { CI: "true" }
7045

71-
- name: 📤 Upload Playwright report
46+
- uses: actions/upload-artifact@v4
7247
if: always()
73-
uses: actions/upload-artifact@v4
74-
with:
75-
name: playwright-report
76-
path: playwright-report
77-
48+
with: { name: playwright-report, path: playwright-report }

0 commit comments

Comments
 (0)