feat: slashing release #1354
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: Lint and Check Format | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- "dev" | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Foundry Fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run forge fmt | |
run: | | |
forge fmt --check src/contracts | |
id: fmt | |
- name: install npm dependencies | |
run: npm install --include=dev | |
- name: run solhint | |
run: npm run hint |