Skip to content

Commit 43fb3ad

Browse files
s1nagballet
authored andcommitted
.github: add lint step (ethereum#31068)
1 parent 9abbd15 commit 43fb3ad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/go.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
lint:
12+
name: Lint
13+
runs-on: self-hosted
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
# Cache build tools to avoid downloading them each time
18+
- uses: actions/cache@v4
19+
with:
20+
path: build/cache
21+
key: ${{ runner.os }}-build-tools-cache-${{ hashFiles('build/checksums.txt') }}
22+
23+
- name: Set up Go
24+
uses: actions/setup-go@v5
25+
with:
26+
go-version: 1.23.0
27+
cache: false
28+
29+
- name: Run linters
30+
run: |
31+
go run build/ci.go lint
32+
go run build/ci.go check_tidy
33+
go run build/ci.go check_baddeps
34+
1135
build:
1236
runs-on: self-hosted
1337
steps:

0 commit comments

Comments
 (0)