Skip to content

Commit

Permalink
Add golangci-lint install in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Feb 16, 2024
1 parent 033dd02 commit 794b23c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/go_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
run: go mod tidy && [ -z "$(git status -s)" ]

- name: Lint
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
make lint
run: make lint

- name: Vet
run: make vet
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ 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 794b23c

Please sign in to comment.