Add automated toolings for testing contracts #4
Workflow file for this run
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 Mutate Analysis | |
#on: workflow_dispatch | |
on: | |
pull_request: | |
branches: [ main ] | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Slither | |
run: | | |
sudo apt-get install -y python3-pip | |
pip3 install slither-analyzer | |
id: slither-install | |
- name: Run Slither-Mutate | |
run: | | |
slither-mutate . --test-cmd='forge test' --timeout 300 --test-dir='test' --ignore-dirs='script,lib,test,utils,deployment' | |
id: slither-mutate |