Skip to content

Commit 0700810

Browse files
refactor(ci): replace ci.yml with focused e2e.yml
1 parent f2bcd22 commit 0700810

File tree

2 files changed

+54
-79
lines changed

2 files changed

+54
-79
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/e2e.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: E2E
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
e2e:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
20+
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: '22'
24+
cache: 'pnpm'
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Install Playwright browsers
30+
run: pnpm exec playwright install --with-deps chromium
31+
32+
- name: Build application
33+
run: pnpm build
34+
env:
35+
NEXT_PUBLIC_SUPABASE_URL: https://mock.supabase.co
36+
NEXT_PUBLIC_SUPABASE_ANON_KEY: mock-anon-key
37+
NEXT_PUBLIC_ENABLE_MSW_MOCK: 'true'
38+
APP_ENV: test
39+
40+
- name: Run E2E tests
41+
run: pnpm test:e2e
42+
env:
43+
NEXT_PUBLIC_SUPABASE_URL: https://mock.supabase.co
44+
NEXT_PUBLIC_SUPABASE_ANON_KEY: mock-anon-key
45+
NEXT_PUBLIC_ENABLE_MSW_MOCK: 'true'
46+
APP_ENV: test
47+
48+
- name: Upload test artifacts
49+
uses: actions/upload-artifact@v4
50+
if: failure()
51+
with:
52+
name: playwright-report
53+
path: playwright-report/
54+
retention-days: 7

0 commit comments

Comments
 (0)