Create foundry-test.yml #7
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 Linter | |
on: | |
push: | |
branches: | |
- '**' # This wildcard ensures that all branches are in scope | |
jobs: | |
lint: | |
name: Lint Solidity Files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' # You can specify your desired Node.js version here | |
- name: Install Solhint | |
run: npm install -g solhint | |
- name: Run Solhint | |
run: | | |
solhint --init | |
solhint 'src/*.sol' |