-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1021 Bytes
/
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
name: Build
on: push
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: Reservoir Unit Tests
runs-on: ubuntu-latest
environment: test
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.FORTUNABOT_REPOS }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: |
cd lib/chainlink
yarn install
id: installdep
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
cp .env.template .env
forge test -vvv
id: testrun
- name: Snapshot Forge Gas in tests
run: |
forge snapshot
id: snapshot