-
Notifications
You must be signed in to change notification settings - Fork 50
54 lines (47 loc) · 1.37 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
name: ci
on:
pull_request:
push:
branches:
- master
jobs:
e2e:
strategy:
fail-fast: false
matrix:
include:
- test: executives.spec
- test: delegates.spec
# - test: esmodule.spec
- test: polling.spec
runs-on: ubuntu-latest
env:
INFURA_KEY: ${{ secrets.INFURA_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }}
POCKET_KEY: ${{ secrets.POCKET_KEY }}
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
REDIS_URL: ${{ secrets.REDIS_URL }}
USE_CACHE: true
TENDERLY_API_KEY: ${{ secrets.TENDERLY_API_KEY }}
DEFENDER_API_SECRET_TESTNET: $${{ secrets.DEFENDER_API_SECRET_TESTNET}}
DEFENDER_API_KEY_TESTNET: ${{ secrets.DEFENDER.API_KEY_TESTNET}}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Build sdk
run: yarn build-sdk
- run: yarn exec playwright install --with-deps
- name: Run E2E Test
run: yarn run e2e ${{ matrix.test }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-${{ matrix.test }}
path: playwright-report/
retention-days: 30