Skip to content

Commit

Permalink
Avoid installing golangci when running make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Feb 26, 2024
1 parent 55d0628 commit 15116c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/go_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
run: go mod tidy && [ -z "$(git status -s)" ]

- name: Lint
run: make lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.54

- name: Vet
run: make vet
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
install-golangci:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2

tidy:
#go install honnef.co/go/tools/cmd/staticcheck@latest
go mod tidy
Expand All @@ -7,8 +10,6 @@ generate: tidy

# Coding style static check.
lint: tidy
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
@go mod tidy
golangci-lint run

vet: tidy
Expand Down

0 comments on commit 15116c1

Please sign in to comment.