test(ci): fail forge fmt + storage layout from fork #135
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: Solhint | |
on: | |
merge_group: | |
pull_request: | |
push: | |
branches: | |
- main | |
- release/** | |
tags: | |
- "*" | |
jobs: | |
lint: | |
strategy: | |
fail-fast: true | |
# No more than a few minutes | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' # Latest LTS | |
- name: Clear npm cache | |
run: npm cache clean --force | |
- name: Install Solhint | |
run: npm install --save-dev solhint | |
- name: Run Solhint | |
run: | | |
npx solhint 'src/**/*.sol' -c ./src/.solhint.json |