-
-
Notifications
You must be signed in to change notification settings - Fork 26
66 lines (56 loc) · 1.88 KB
/
e2e.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
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:
name: E2E
jobs:
e2e-vite:
name: Playwright E2E @evmts/example-vite
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.37.1-jammy
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: "Setup"
uses: ./.github/actions/setup
- name: Run anvil
run: anvil --port=8546 --fork-url ${{ secrets.RPC_URL_MAINNET }} --fork-block-number 14457512 &
env:
ANVIL_FORK_URL: ${{ secrets.ANVIL_FORK_URL }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
ANVIL_RPC_URL_1: ${{ secrets.RPC_URL_MAINNET }}
EXAMPLE_PROJECT: "@evmts/example-vite"
SERVER_PORT: 5173
VITE_RPC_URL_1: "http://localhost:8546"
PRIVATE_KEY: "test test test test test test test test test test test junk"
- name: Run @evmts/vite-example tests
run: xvfb-run pnpm nx e2e:ci @evmts/e2e
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
ANVIL_RPC_URL_1: ${{ secrets.RPC_URL_MAINNET }}
EXAMPLE_PROJECT: "@evmts/example-vite"
SERVER_PORT: 5173
VITE_RPC_URL_1: "http://localhost:8546"
PRIVATE_KEY: "test test test test test test test test test test test junk"
- name: 'Upload test-results artifacts'
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results
path: e2e/test-results/**/*
retention-days: 15
- name: 'Upload playwright-report'
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results
path: e2e/playwright-report/**/*
retention-days: 15
- name: Shutdown Anvil
run: pkill -2 anvil