@@ -12,114 +12,20 @@ env:
1212 FOUNDRY_PROFILE : ci
1313
1414jobs :
15- check :
16- name : Foundry Project
15+ test :
16+ name : Run Forge Tests
1717 runs-on : ubuntu-latest
1818 steps :
1919 - name : Checkout repository
2020 uses : actions/checkout@v4
21- with :
22- submodules : recursive
2321
2422 - name : Install Foundry
2523 uses : foundry-rs/foundry-toolchain@v1
2624 with :
2725 version : nightly
2826
29- - name : Cache Dependencies
30- uses : actions/cache@v3
31- with :
32- path : |
33- ~/.cargo/bin/
34- ~/.cargo/registry/index/
35- ~/.cargo/registry/cache/
36- ~/.cargo/git/db/
37- lib/
38- out/
39- key : ${{ runner.os }}-foundry-${{ hashFiles('**/foundry.toml', '**/Cargo.lock') }}
40-
4127 - name : Install Dependencies
4228 run : forge install
4329
44- - name : Run Forge build
45- run : |
46- forge --version
47- forge build --sizes
48- id : build
49-
5030 - name : Run Forge tests
51- run : |
52- forge test -vvv
53- id : test
54-
55- - name : Run Forge coverage
56- run : |
57- forge coverage --report lcov
58- id : coverage
59-
60- - name : Upload coverage reports
61- uses : codecov/codecov-action@v3
62- with :
63- token : ${{ secrets.CODECOV_TOKEN }}
64- files : ./lcov.info
65- fail_ci_if_error : true
66-
67- - name : Gas snapshot
68- run : forge snapshot --check
69-
70- - name : Storage layout
71- run : forge inspect --pretty
72-
73- lint :
74- name : Run Linters
75- runs-on : ubuntu-latest
76- steps :
77- - name : Checkout repository
78- uses : actions/checkout@v4
79-
80- - name : Setup Node.js
81- uses : actions/setup-node@v4
82- with :
83- node-version : ' 20'
84-
85- - name : Install solhint
86- run : |
87- npm init -y
88- npm install solhint
89- npm install solhint-plugin-prettier
90-
91- - name : Run solhint
92- run : |
93- npx solhint '**/*.sol'
94-
95- - name : Run forge fmt check
96- uses : foundry-rs/foundry-toolchain@v1
97- with :
98- version : nightly
99-
100- - name : Check formatting
101- run : forge fmt --check
102-
103- security :
104- name : Security Analysis
105- runs-on : ubuntu-latest
106- permissions :
107- contents : read
108- security-events : write
109- steps :
110- - name : Checkout repository
111- uses : actions/checkout@v4
112-
113- - name : Run Slither
114- 115- continue-on-error : true
116- id : slither
117- with :
118- node-version : 20
119- sarif : results.sarif
120-
121- - name : Upload SARIF file
122- uses : github/codeql-action/upload-sarif@v2
123- with :
124- sarif_file : results.sarif
125- if : always()
31+ run : forge test -vvv
0 commit comments