Skip to content

Commit

Permalink
Create solhint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gul-hameed authored Oct 13, 2023
1 parent fce2d28 commit 8149f08
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/solhint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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'

0 comments on commit 8149f08

Please sign in to comment.