-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (56 loc) · 2.07 KB
/
playwright.yml
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
name: Playwright Tests
on:
deployment_status:
jobs:
e2e:
name: Synpress e2e
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- name: Checkout branch
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
uses: ./.github/common-actions/install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@8f1998e9878d786675189ef566a2e4bf24869773 # [email protected]
- name: Install Playwright dependencies
run: pnpm dlx [email protected] install-deps
# For now, we only need Chromium.
- name: Install browsers for Playwright
run: pnpm dlx [email protected] install chromium
- name: Install linux dependencies
run: |
sudo apt-get install --no-install-recommends -y \
xvfb
- name: Serve MetaMask Test Dapp
run: |
pnpm run serve:test-dapp &
- name: Build cache
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
# SEED_PHRASE: ${{ secrets.SEED_PHRASE }}
# WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }}
SEED_PHRASE: 'test test test test test test test test test test test junk'
WALLET_PASSWORD: 'SynpressIsAwesomeNow!!!'
run: |
xvfb-run pnpm build:e2e:cache
- name: Run E2E tests (headful)
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
# SEED_PHRASE: ${{ secrets.SEED_PHRASE }}
# WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }}
SEED_PHRASE: 'test test test test test test test test test test test junk'
WALLET_PASSWORD: 'SynpressIsAwesomeNow!!!'
run: |
xvfb-run pnpm test:e2e:ci
- name: Archive e2e artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30