Skip to content

Commit e6e4493

Browse files
authored
Update contracts.yml
1 parent c08abb6 commit e6e4493

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/contracts.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -138,42 +138,42 @@ jobs:
138138
- name: Run hardhat tests
139139
run: npx hardhat test
140140
slither:
141-
if: github.event.pull_request.draft == false
142-
needs: foundry
143-
runs-on: ubuntu-latest
144-
steps:
145-
- uses: actions/checkout@v4
146-
147-
- uses: actions/setup-node@v4
148-
with:
149-
node-version: '18'
150-
- run: yarn install --frozen-lockfile
151-
152-
- uses: foundry-rs/foundry-toolchain@v1
153-
with:
154-
version: nightly
155-
- name: Build contracts
156-
run: forge build --build-info --out out --evm-version cancun
157-
158-
- uses: actions/setup-python@v5
159-
with:
160-
python-version: '3.11'
161-
- run: |
162-
python -m pip install --upgrade pip
163-
pip install slither-analyzer==0.11.0
164-
165-
- name: Run Slither
166-
run: |
167-
slither . \
168-
--skip-compile \
169-
--foundry-out-directory out \
170-
--exclude-dependencies \
171-
--json slither-report.json \
172-
--markdown-root slither-report.md
173-
174-
- uses: actions/upload-artifact@v4
175-
with:
176-
name: slither-static-analysis
177-
path: |
178-
slither-report.json
179-
slither-report.md
141+
if: github.event.pull_request.draft == false
142+
needs: foundry
143+
runs-on: ubuntu-latest
144+
145+
steps:
146+
- uses: actions/checkout@v4
147+
148+
- uses: actions/setup-node@v4
149+
with:
150+
node-version: '18'
151+
- run: yarn install --frozen-lockfile
152+
153+
- uses: foundry-rs/foundry-toolchain@v1
154+
with:
155+
version: nightly
156+
- name: Build contracts (Cancún)
157+
run: forge build --build-info --out out --evm-version cancun
158+
159+
- uses: actions/setup-python@v5
160+
with:
161+
python-version: '3.11'
162+
- run: |
163+
python -m pip install --upgrade pip
164+
pip install slither-analyzer==0.11.0
165+
166+
- name: Run Slither
167+
run: |
168+
slither . \
169+
--foundry-out-directory out \
170+
--exclude-dependencies \
171+
--json slither-report.json \
172+
--markdown-root slither-report.md
173+
174+
- uses: actions/upload-artifact@v4
175+
with:
176+
name: slither-static-analysis
177+
path: |
178+
slither-report.json
179+
slither-report.md

0 commit comments

Comments
 (0)