File tree Expand file tree Collapse file tree 2 files changed +54
-79
lines changed
Expand file tree Collapse file tree 2 files changed +54
-79
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments