-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (56 loc) · 1.74 KB
/
playwright.yaml
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
name: Playwright Tests
on:
pull_request:
jobs:
test-tutorials:
timeout-minutes: 12
runs-on: ubuntu-latest
strategy:
matrix:
tutorial:
# - "erc20-paymaster"
# - "how-to-test-contracts"
# - "daily-spend-limit"
# - "native-aa-multisig"
- "signing-txns-with-webauthn"
- "frontend-paymaster"
- "zk-game"
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install Dependencies
run: bun install --frozen-lockfile
- uses: actions/setup-node@v4
- name: Install Playwright Browsers
run: bun playwright install chromium --with-deps
- name: Run anvil-zksync
uses: dutterbutter/[email protected]
- name: Create Metamask Cache
if: matrix.tutorial == 'frontend-paymaster'
run: xvfb-run bun setup:mm
- name: Install Rust Toolchain
if: matrix.tutorial == 'zk-game'
uses: actions-rs/toolchain@v1
with:
toolchain: 1.81.0
components: llvm-tools, rustc-dev
- name: Install Cargo Prove
if: matrix.tutorial == 'zk-game'
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
echo "$HOME/.sp1/bin:${GITHUB_PATH}" >> $GITHUB_PATH
- name: Run test for ${{ matrix.tutorial }}
run: |
export TERM=xterm-256color
export COLUMNS=80
export LINES=24
xvfb-run bun test:headful tests/${{ matrix.tutorial }}.spec.ts
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.tutorial }}
path: |
${{ github.workspace }}/playwright-report/
retention-days: 10