-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (39 loc) · 1.13 KB
/
foundry.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
name: Foundry project
on:
pull_request:
types: [opened, reopened, synchronize]
env:
CI: true
FORK_RPC_URL: ${{ secrets.MAINNET_TESTS_FORK }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Use Latest Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable
pnpm --version
- name: Setup node.js
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version-file: ".nvmrc"
- name: Install node dependencies
run: pnpm install --frozen-lockfile
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Install forge dependencies
run: forge i
- name: Build project
run: forge b
- name: Run tests
run: forge test --fork-url ${{ secrets.MAINNET_TESTS_FORK }}