chore: refactor MessagIdHook/ISM tests into a common ExternalBridgeTest
contract
#1039
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: static-analysis | |
on: | |
push: | |
# Triggers the workflow on push to main | |
branches: [main] | |
paths: | |
- 'solidity/**' | |
- '.github/workflows/static-analysis.yml' | |
# Triggers the workflow on pull request | |
pull_request: | |
paths: | |
- 'solidity/**' | |
- '.github/workflows/static-analysis.yml' | |
jobs: | |
slither: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
submodules: recursive | |
- name: yarn-cache | |
uses: buildjet/cache@v4 | |
with: | |
path: | | |
**/node_modules | |
.yarn | |
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-cache- | |
- name: yarn-install | |
run: yarn install | |
- name: foundry-install | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: forge-build | |
run: cd solidity && forge build --build-info | |
- name: Static analysis | |
uses: crytic/[email protected] | |
id: slither | |
with: | |
target: 'solidity/' | |
slither-config: 'solidity/slither.config.json' | |
sarif: results.sarif | |
fail-on: none | |
ignore-compile: true | |
- name: Upload SARIF file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: ${{ steps.slither.outputs.sarif }} |