-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.02 KB
/
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
51
name: Test
on: [pull_request]
env:
SOLC_VERSION: 0.8.20
jobs:
contract-test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Show forge version
run: forge --version
- name: npm install
run: npm install
- name: Build and Check sizes
run: make SOLC_VERSION=${{ env.SOLC_VERSION }} build
- name: Run tests
run: make SOLC_VERSION=${{ env.SOLC_VERSION }} TEST_UPGRADEABLE=true test
- name: Lint
run: make lint
slither:
name: Slither analysis
needs: contract-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: crytic/[email protected]
with:
node-version: 20.13
slither-version: 0.10.1