File tree Expand file tree Collapse file tree 5 files changed +56
-84
lines changed Expand file tree Collapse file tree 5 files changed +56
-84
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ setup :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Checkout code
10
+ uses : actions/checkout@v4
11
+
12
+ - name : Install Foundry
13
+ uses : foundry-rs/foundry-toolchain@v1
14
+
15
+ - name : Check Foundry version
16
+ run : forge --version
17
+
18
+ - name : Install dependencies
19
+ run : forge install
20
+
21
+ - name : Cache build artifacts
22
+ uses : actions/cache@v3
23
+ with :
24
+ path : |
25
+ cache
26
+ out
27
+ key : ${{ runner.os }}-build-${{ hashFiles('**/foundry.toml') }}-${{ hashFiles('**/remappings.txt') }}-${{ hashFiles('**/Cargo.lock') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-build-
30
+
31
+ lint :
32
+ needs : setup
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - name : Check formatting
36
+ run : forge fmt --check
37
+
38
+ slither :
39
+ needs : setup
40
+ runs-on : ubuntu-latest
41
+ steps :
42
+ - name : Install Slither
43
+ run : pip install slither-analyzer==0.10.0
44
+
45
+ - name : Run Slither
46
+ run : slither .
47
+
48
+ test :
49
+ needs : setup
50
+ runs-on : ubuntu-latest
51
+ steps :
52
+ - name : Check contract sizes
53
+ run : forge build --sizes
54
+
55
+ - name : Check gas snapshots
56
+ run : forge snapshot --check
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments