Skip to content

Commit 1ecf416

Browse files
authored
ci: Fix lint job (#2067)
* ci: Use go-ethereum lint configuration This switches CI to use the committed version of `golangci-lint` * ci: Use standard runners for simple jobs * ci: Disable `unused` lint again
1 parent 085fc78 commit 1ecf416

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/config.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181

8282
go-modules:
8383
name: Setup go
84-
runs-on: ubuntu-latest-4-cores
84+
runs-on: ubuntu-latest
8585

8686
steps:
8787
- name: Checkout repo
@@ -96,7 +96,7 @@ jobs:
9696
check-imports:
9797
name: Check imports
9898
needs: go-modules
99-
runs-on: ubuntu-latest-4-cores
99+
runs-on: ubuntu-latest
100100

101101
steps:
102102
- name: Checkout repo
@@ -112,7 +112,7 @@ jobs:
112112

113113
lint:
114114
name: Lint code
115-
runs-on: ubuntu-latest-4-cores
115+
runs-on: ubuntu-latest
116116
needs: go-modules
117117

118118
steps:
@@ -125,10 +125,7 @@ jobs:
125125
check-latest: false
126126
cache: true
127127
- name: Run linter
128-
uses: golangci/golangci-lint-action@v3
129-
with:
130-
skip-pkg-cache: true
131-
only-new-issues: true
128+
run: make lint
132129

133130
unit-tests:
134131
name: Unit tests

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ linters:
2020
- misspell
2121
# - staticcheck
2222
- unconvert
23-
- unused
23+
# - unused
2424

2525
# - gosec
2626
# - errcheck

0 commit comments

Comments
 (0)