-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 923 Bytes
/
linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Soldity Linter
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
solhint:
runs-on: ubuntu-20.04
timeout-minutes: 2
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install solhint
run: |
npm install solhint -g
solhint --version
- name: Run Linter
run: ./scripts/lint.sh --sol-lint
format-solidity:
runs-on: ubuntu-20.04
timeout-minutes: 2
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
run: ./scripts/install_foundry.sh
- name: Check Solidity Formatting
run: |
export PATH=$PATH:$HOME/.foundry/bin
./scripts/lint.sh --sol-format-check