-
Notifications
You must be signed in to change notification settings - Fork 18
48 lines (38 loc) · 1.27 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
name: tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-59f354c179f4e7f6d7292acb3d068815c79286d1
- name: Install dependencies
run: git submodule update --recursive --init
- name: Build MultiCall
run: forge build -- src/multicall/MultiCall.sol
env:
FOUNDRY_EVM_VERSION: london
FOUNDRY_OPTIMIZER_RUNS: 1000000
- name: Run the MultiCall tests
run: forge test --skip 'src/*' --mc MultiCall
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
- name: Build UniswapV4
run: forge build -- lib/v4-core/src/PoolManager.sol
- name: Build contracts
run: forge build --skip UniswapV4UnitTest.t.sol --skip MultiCall.sol --skip 'test/*'
- name: Build UniswapV4 tests
run: forge build --skip MultiCall.sol --skip 'test/*'
- name: Run all the other tests
run: forge test --skip 'src/*' --nmc MultiCall
env:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}