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 bff5a9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
- name: Tidy
run: go mod tidy && [ -z "$(git status -s)" ]

- name: Lint
run: make lint
- name: Golangci-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/[email protected]

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/[email protected]
@go mod tidy
golangci-lint run

vet: tidy
Expand Down

0 comments on commit bff5a9f

Please sign in to comment.