-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (82 loc) · 2.67 KB
/
ve-silo.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
95
# 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: veSilo
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 }}
PROPOSER_PRIVATE_KEY: ${{ secrets.PROPOSER_PRIVATE_KEY }}
on:
push:
branches: [ master, develop ]
paths:
- external/balancer-v2-monorepo/**/*.sol
- external/balancer-v2-monorepo/**/*.vy
- external/balancer-v2-monorepo/**/*.ts
- external/balancer-v2-monorepo/**/*.js
- external/balancer-v2-monorepo/**/*.json
- ve-silo/**/*.sol
- ve-silo/**/*.vy
- ve-silo/**/*.ts
- ve-silo/**/*.js
- ve-silo/**/*.json
- package.json
- yarn.lock
- gitmodules/*
- .gitmodules
- .github/workflows/ve-silo.yml
pull_request:
paths:
- external/balancer-v2-monorepo/**/*.sol
- external/balancer-v2-monorepo/**/*.vy
- external/balancer-v2-monorepo/**/*.ts
- external/balancer-v2-monorepo/**/*.js
- external/balancer-v2-monorepo/**/*.json
- ve-silo/**/*.sol
- ve-silo/**/*.vy
- ve-silo/**/*.ts
- ve-silo/**/*.js
- ve-silo/**/*.json
- package.json
- yarn.lock
- gitmodules/*
- .gitmodules
- .github/workflows/ve-silo.yml
jobs:
ve-silo-foundry:
strategy:
fail-fast: true
name: Foundry tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-70cd140131cd49875c6f31626bdfae08eba35386
- name: yarn install
run: yarn install
- name: Solidity Lint
run: yarn workspace ve-silo lint:sol
- name: Install Vyper compiler
run: |
pip install vyper==0.3.7
vyper --version
- 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: Forge build
run: |
git submodule
forge --version
FOUNDRY_PROFILE=ve-silo forge build --sizes
- name: Forge test
run: FOUNDRY_PROFILE=ve-silo-test forge test --ffi -vvv