chore: artifacts clean #4
This file contains hidden or 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: Security & Testing | |
| on: [push, pull_request] | |
| jobs: | |
| check: | |
| name: Run Foundry Tests, Coverage, Snapshot & Slither | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Run Tests | |
| run: forge test -vv | |
| # Clean artifacts to ensure Slither gets a fresh build | |
| - name: Clean Artifacts | |
| run: forge clean | |
| # Strict Check: Fails if gas usage increases significantly | |
| - name: Check Gas Usage | |
| run: forge snapshot --check | |
| - name: Run Coverage | |
| run: forge coverage | |
| - name: Run Slither Analysis | |
| uses: crytic/slither-action@v0.4.0 | |
| id: slither | |
| with: | |
| fail-on: none | |
| slither-args: --checklist | |
| ignore-compile: true |