-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (59 loc) · 1.7 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: Build and Test
on: [push]
env:
FOUNDRY_PROFILE: ci
jobs:
check:
env:
DEPLOYMENTS: ${{ vars.DEPLOYMENTS }}
MAINNET_BRIDGE_ADDRESS: ${{ vars.MAINNET_BRIDGE_ADDRESS }}
MAINNET_FLOW_RATED_TOKENS: ${{ vars.MAINNET_FLOW_RATED_TOKENS }}
TESTNET_BRIDGE_ADDRESS: ${{ vars.TESTNET_BRIDGE_ADDRESS }}
TESTNET_FLOW_RATED_TOKENS: ${{ vars.TESTNET_FLOW_RATED_TOKENS }}
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
TESTNET_RPC_URL: ${{ secrets.TESTNET_RPC_URL }}
strategy:
fail-fast: true
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set Node.js 18.18.x
uses: actions/setup-node@v3
with:
node-version: 18.18.x
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Run build
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Run Forge build
run: |
forge --version
forge build
id: build
- name: Run Unit Tests
run: |
forge test --match-path "test/unit/**" -vvv
id: unit_test
- name: Run Integration Tests
run: |
forge test --match-path "test/integration/**" -vvv
id: integration_test
- name: Run Fuzz Tests
run: |
forge test --match-path "test/fuzz/**" -vvv
id: fuzz_test
- name: Run Fork Tests
run: |
forge test --match-path "test/fork/**" -vvvvv
id: fork_test