-
Notifications
You must be signed in to change notification settings - Fork 7
35 lines (32 loc) · 937 Bytes
/
forge.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
name: Forge
on:
push:
jobs:
test:
runs-on: ubuntu-latest
env:
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }}
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }}
ETH_NODE_URI_GOERLI: ${{ secrets.ETH_NODE_URI_GOERLI }}
FORK_NUMBER: ${{ secrets.FORK_NUMBER }}
POLYGON_FORK_NUMBER: ${{ secrets.POLYGON_FORK_NUMBER }}
FORK_NUMBER_POLYGON: 36004499
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dev dependencies
run: yarn install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install Deps
run: forge install
- name: Run forge tests
run: forge test
- name: Get forge test coverage
run: forge coverage