-
Notifications
You must be signed in to change notification settings - Fork 5k
55 lines (54 loc) · 1.58 KB
/
e2e_network_tests.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
name: 'E2E Network Tests'
on:
push:
branches:
- release/**
tags:
- v4.*
# For test purpose only:
# pull_request:
# branches:
# - '4.x'
# types: [ opened, reopened, synchronize ]
jobs:
build:
name: Build Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: yarn
- uses: actions/cache/save@v4
with:
path: ./
key: web3-e2e-18-${{github.sha}}
e2e:
name: E2E Network Tests
needs: build
runs-on: ubuntu-latest
env:
INFURA_SEPOLIA_HTTP: ${{ secrets.CS_ETH_SEPOLIA }}
INFURA_MAINNET_HTTP: ${{ secrets.CS_ETH_MAINNET }}
MODE: ${{ matrix.mode }}
TEST_ACCOUNT_ADDRESS: ${{ fromJSON('{"sepolia":"0xa127C5E6a7E3600Ac34A9a9928E52521677e7211","mainnet":"0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d"}')[matrix.network] }}
ALLOWED_SEND_TRANSACTION: ${{ secrets.E2E_TESTS_ALLOWED_SEND_TRANSACTION }}
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
strategy:
fail-fast: false
matrix:
mode: ['http']
network: ['sepolia', 'mainnet']
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/cache/restore@v4
with:
path: ./
key: web3-e2e-18-${{github.sha}}
- run: |
yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }}
shell: bash