Add slither analysis to CI #104
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: Test | |
on: [pull_request] | |
env: | |
SOLC_VERSION: 0.8.20 | |
jobs: | |
contract-test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Show forge version | |
run: forge --version | |
- name: npm install | |
run: npm install | |
- name: Build and Check sizes | |
run: make SOLC_VERSION=${{ env.SOLC_VERSION }} build | |
- name: Run tests | |
run: make SOLC_VERSION=${{ env.SOLC_VERSION }} TEST_UPGRADEABLE=true test | |
- name: Lint | |
run: make lint | |
slither: | |
name: Slither analysis | |
needs: contract-test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: crytic/[email protected] | |
with: | |
node-version: 20.13 | |
slither-version: 0.10.1 |