diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fbe7307..ccaec61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Foundry Tests on: push: branches: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..bb79edc --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Lint +on: + push: + branches: + - master + pull_request: + +jobs: + run-ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + + - name: Install deps + run: forge install + + - name: Run Slither + uses: crytic/slither-action@main + id: slither + continue-on-error: true + with: + sarif: results.sarif + + - name: Upload SARIF file + uses: github/codeql-action/upload-sarif@v1 + with: + sarif_file: ${{ steps.slither.outputs.sarif }} diff --git a/README.md b/README.md index efac030..2644b2d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ **Template repository for getting started quickly with Foundry projects** -![Github Actions](https://github.com/foundry-rs/forge-template/workflows/CI/badge.svg) +![Foundry Tests](https://github.com/foundry-rs/forge-template/workflows/Foundry Tests/badge.svg) +![Slither Lints](https://github.com/foundry-rs/forge-template/workflows/Lints/badge.svg) ## Getting Started diff --git a/lib/forge-std b/lib/forge-std index 40977d9..409465b 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 40977d9e9444acd4c59c16b6782c658c786c0d05 +Subproject commit 409465b6992822a91318142dd269660aad9e30ee