Merge pull request #843 from molecula451/improved-readme #12
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: Slither Analysis | |
on: | |
push: | |
branches: | |
- development | |
- main | |
paths: | |
- '**.sol' | |
pull_request: | |
paths: | |
- '**.sol' | |
jobs: | |
slither-analysis: | |
name: Slither Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Slither | |
run: pip3 install slither-analyzer | |
- name: Install dependencies | |
run: | | |
yarn install | |
yarn workspace @ubiquity/contracts forge:install | |
- name: Test with Slither | |
run: yarn workspace @ubiquity/contracts run test:slither |