Skip to content

Commit

Permalink
Add slither to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aviggiano committed Dec 5, 2023
1 parent e56cdbf commit d3e5617
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
- "*"

jobs:
check:
foundry:
strategy:
fail-fast: true

name: CI
name: Foundry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,4 +50,26 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: coverage
path: report/
path: report/

slither:
strategy:
fail-fast: true

name: Slither
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
fail-on: low
3 changes: 3 additions & 0 deletions slither.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"filter_paths": "(lib/|test/)"
}

0 comments on commit d3e5617

Please sign in to comment.