UNPKG

984 BYAMLView Raw
1name: Static Analysis
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9jobs:
10 slither:
11 name: Slither
12 runs-on: ubuntu-latest
13
14 steps:
15 - uses: actions/checkout@v2
16
17 - name: Set up node
18 uses: actions/setup-node@v1
19 with:
20 node-version: 12
21
22 - name: Set up Python 3.8
23 uses: actions/setup-python@v2
24 with:
25 python-version: 3.8
26
27 - name: Install node dependencies
28 run: yarn
29
30 - name: Install slither
31 run: |
32 python -m pip install --upgrade pip
33 pip3 install slither-analyzer
34
35 # workaround for https://github.com/crytic/crytic-compile/issues/113
36 - name: Install solc
37 run: |
38 sudo wget -O /usr/bin/solc https://github.com/ethereum/solidity/releases/download/v0.6.12/solc-static-linux
39 sudo chmod +x /usr/bin/solc
40
41 - name: Run slither
42 run: slither . --waffle-config waffle.json --compile-force-framework Waffle