-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (69 loc) · 2.39 KB
/
test.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
67
68
69
70
71
name: "Test"
on:
pull_request:
workflow_dispatch:
jobs:
test-fork:
if: github.event.pull_request.head.repo.fork == true && github.event.pull_request.head.repo.private == false
env:
SEPOLIA_RPC: https://ethereum-sepolia-rpc.publicnode.com
MAINNET_RPC: https://cloudflare-eth.com
POLYGON_RPC: wss://polygon.drpc.org
OPTIMISM_RPC: https://mainnet.optimism.io
ARBITRUM_RPC: https://1rpc.io/arb
GNOSIS_RPC: https://gnosis.publicnode.com
BASE_RPC: https://mainnet.base.org
CELO_RPC: https://forno.celo.org
ETHERSCAN_KEY: HDMPWG86NYEF1Y5KWZU1XI4HZX4SNHFW3B
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.16.1
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install
run: yarn install --frozen-lockfile
- name: Check Format
run: yarn prettier . --check
- name: Test
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: yarn test
test-branch:
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
env:
SEPOLIA_RPC: https://sepolia.infura.io/v3/${{ secrets.INFURA_KEY }}
MAINNET_RPC: https://mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}
POLYGON_RPC: https://polygon-mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}
OPTIMISM_RPC: https://optimism-mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}
ARBITRUM_RPC: https://arbitrum-mainnet.infura.io/v3/${{ secrets.INFURA_KEY }}
GNOSIS_RPC: https://gnosis.publicnode.com
BASE_RPC: https://mainnet.base.org
CELO_RPC: https://forno.celo.org
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.16.1
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install
run: yarn install --frozen-lockfile
- name: Check Format
run: yarn prettier . --check
- name: Test
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 3
command: yarn test