Skip to content

Commit

Permalink
Add slither-mutate support in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matjazv committed May 31, 2024
1 parent 31fefe7 commit b5f79d0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/slither-mutate.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b5f79d0

Please sign in to comment.