-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (79 loc) · 3.03 KB
/
silo-vaults.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: VAULTS Quality Test
env:
RPC_MAINNET: ${{ secrets.RPC_MAINNET }}
RPC_ARBITRUM: ${{ secrets.RPC_ARBITRUM }}
RPC_SEPOLIA: ${{ secrets.RPC_SEPOLIA }}
RPC_OPTIMISM: ${{ secrets.RPC_OPTIMISM }}
RPC_ANVIL: ${{ secrets.RPC_ANVIL }}
PRIVATE_KEY: ${{ secrets.ANVIL_PRIVATE_KEY }}
on:
push:
branches: [ master, develop ]
paths:
- silo-vaults/**/*.sol
- silo-vaults/**/*.ts
- silo-vaults/**/*.js
- silo-vaults/**/*.json
- package.json
- yarn.lock
- gitmodules/*
- .gitmodules
- .github/workflows/silo-vaults.yml
pull_request:
paths:
- silo-vaults/**/*.sol
- silo-vaults/**/*.ts
- silo-vaults/**/*.js
- silo-vaults/**/*.json
- package.json
- yarn.lock
- gitmodules/*
- .gitmodules
- .github/workflows/silo-vaults.yml
jobs:
silo-vaults-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache silo-vaults contracts
uses: actions/cache@v3
with:
path: ./cache/
key: silo-vaults-contracts-cache-${{ hashFiles('./silo-vaults/**/*.sol') }}
restore-keys: |
silo-vaults-contracts-cache-${{ hashFiles('./silo-vaults/**/*.sol') }}
silo-vaults-contracts-cache-
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-70cd140131cd49875c6f31626bdfae08eba35386
- name: Build silo foundry utils
working-directory: ./gitmodules/silo-foundry-utils
run: |
cargo build --release
cp target/release/silo-foundry-utils ../../silo-foundry-utils
../../silo-foundry-utils --version
- name: Run tests
run: FOUNDRY_PROFILE=vaults-tests forge test -vv --ffi
- name: Sizes
run: |
git submodule
forge --version
FOUNDRY_PROFILE=vaults forge build --sizes
linters:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: 'yarn'
- run: yarn install
- name: Solidity Lint
run: yarn workspace silo-vaults lint:sol