feat: Boolean toggle for migration (SC-16793) (#21) #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
push: | |
branches: "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
sudo snap install solc | |
python -m pip install --upgrade pip | |
pip install slither-analyzer==0.8.2 solc-select==0.2.1 | |
solc-select install 0.8.7 | |
solc-select use 0.8.7 | |
- name: Install submodules | |
run: | | |
git config --global url."https://github.com/".insteadOf "git@github.com:" | |
git submodule update --init --recursive | |
- name: Summary of static analysis | |
run: | | |
slither contracts --print human-summary | |
- name: Contract summary of static analysis | |
run: | | |
slither contracts --print contract-summary | |
- name: Function summary | |
run: | | |
slither contracts --print function-summary | |
- name: Inheritance | |
run: | | |
slither contracts --print inheritance | |
- name: Data dependency | |
run: | | |
slither contracts --print data-dependency | |
- name: Static Analysis | |
run: | | |
slither contracts | |
continue-on-error: true |