-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (55 loc) · 1.63 KB
/
Copy pathe2e.yml
File metadata and controls
67 lines (55 loc) · 1.63 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: E2E
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
playwright:
name: Playwright (${{ matrix.project }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
project: [ desktop, mobile ]
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Install e2e package deps
working-directory: e2e
run: pnpm install --ignore-workspace --frozen-lockfile
- name: Install Playwright browsers
working-directory: e2e
run: pnpm exec playwright install --with-deps ${{ matrix.project == 'mobile' && 'webkit' || 'chromium' }}
- name: Run Playwright tests
working-directory: e2e
env:
SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }}
CI: "1"
run: pnpm test --project=${{ matrix.project }}
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-report-${{ matrix.project }}
path: e2e/playwright-report
retention-days: 7
- name: Upload trace
if: failure()
uses: actions/upload-artifact@v7
with:
name: playwright-trace-${{ matrix.project }}
path: e2e/test-results
retention-days: 7