-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 1.91 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
72
73
name: Foundry
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FOUNDRY_PROFILE: ci
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
OPTIMISM_RPC_URL: ${{ secrets.OPTIMISM_RPC_URL }}
BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }}
FANTOM_RPC_URL: https://rpc2.fantom.network
ARBITRUM_RPC_URL: ${{ secrets.ARBITRUM_RPC_URL }}
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
AVALANCHE_RPC_URL: ${{ secrets.AVALANCHE_RPC_URL }}
MOONRIVER_RPC_URL: https://moonriver.public.blastapi.io
KAVA_RPC_URL: ${{ secrets.KAVA_RPC_URL }}
LINEA_RPC_URL: https://rpc.linea.build
BASE_RPC_URL: https://mainnet.base.org
BLAST_RPC_URL: ${{ secrets.BLAST_RPC_URL }}
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Cache .foundry/cache directory
- name: Cache Foundry
uses: actions/cache@v2
with:
path: ~/.foundry/cache
key: ${{ runner.os }}-foundry-${{ hashFiles('**/lockfile') }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- run: rustc --version
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: yarn --ignore-scripts
- run: node init.js lib/
- name: Run Forge build
run: |
(cd lib/forge-deploy && cargo build --release && cp target/release/forge-deploy ../../forge-deploy)
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test -vv
FOUNDRY_PROFILE=shanghai forge test -vv
id: test