-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 991 Bytes
/
run-slither.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
name: Run Slither
on:
workflow_dispatch:
pull_request:
jobs:
slither-analyzer:
name: Slither analyzer
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install solc
run: sudo add-apt-repository ppa:ethereum/ethereum;sudo add-apt-repository ppa:ethereum/ethereum-dev;sudo apt-get update;sudo apt-get install solc
- name: Install packages
run: pip install slither-analyzer solc-select
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Switch to solidity version
run: solc-select install 0.8.15;solc-select use 0.8.15
- name: Function clash analysis
run: yarn slither:fn-clashes &> tmp_res; cat tmp_res | grep 'Function id collision found' && exit 1 || exit 0