Skip to content

Commit bff5a9f

Browse files
committed
Avoid installing golangci when running make lint
1 parent 55d0628 commit bff5a9f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/go_lint.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
- name: Tidy
2626
run: go mod tidy && [ -z "$(git status -s)" ]
2727

28-
- name: Lint
29-
run: make lint
28+
- name: Golangci-Lint
29+
uses: golangci/golangci-lint-action@v4
30+
with:
31+
version: v1.54
3032

3133
- name: Vet
3234
run: make vet

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
install-golangci:
2+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
3+
14
tidy:
25
#go install honnef.co/go/tools/cmd/staticcheck@latest
36
go mod tidy
@@ -7,8 +10,6 @@ generate: tidy
710

811
# Coding style static check.
912
lint: tidy
10-
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
11-
@go mod tidy
1213
golangci-lint run
1314

1415
vet: tidy

0 commit comments

Comments
 (0)