-
Notifications
You must be signed in to change notification settings - Fork 156
54 lines (44 loc) · 1.15 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- v[1-9]*
- audit/*
pull_request:
branches:
- v[1-9]*
- audit/*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-09fe3e041369a816365a020f715ad6f94dbce9f2
- name: Display config
run: forge config
- name: Compile contracts
run: make artifacts
- name: Generate interfaces
run: make interfaces
- name: Run tests
run: make test
env:
ETHEREUM_NODE_MAINNET: ${{ secrets.ETHEREUM_NODE_MAINNET }}
ETHEREUM_NODE_POLYGON: ${{ secrets.ETHEREUM_NODE_POLYGON }}
ETHEREUM_NODE_GOERLI: ${{ secrets.ETHEREUM_NODE_GOERLI }}
- name: Check linting & formatting
run: make lint