diff --git a/.github/workflows/slither-mutate.yml b/.github/workflows/slither-mutate.yml new file mode 100644 index 00000000..1c9748b7 --- /dev/null +++ b/.github/workflows/slither-mutate.yml @@ -0,0 +1,33 @@ +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