forked from Ogstevyn/payeasy
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.25 KB
/
e2e.yml
File metadata and controls
51 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# name: E2E Tests
# on:
# push:
# branches: [main, develop]
# pull_request:
# branches: [main, develop]
# jobs:
# e2e:
# name: Playwright E2E
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: npm
# - name: Install dependencies
# run: npm ci
# - name: Install web dependencies
# run: npm ci --prefix apps/web
# - name: Install Playwright browsers
# run: npx playwright install --with-deps chromium
# - name: Build web app
# run: npm run build --prefix apps/web
# env:
# NEXT_PUBLIC_SUPABASE_URL: http://localhost:54321
# NEXT_PUBLIC_SUPABASE_ANON_KEY: placeholder
# - name: Run E2E tests
# run: npx playwright test --config=e2e/playwright.config.ts --project=chromium
# env:
# CI: true
# - name: Upload test report
# uses: actions/upload-artifact@v4
# if: ${{ !cancelled() }}
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 14