Skip to content

Commit

Permalink
Add golangci to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Feb 16, 2024
1 parent 5fad44c commit 7a9a245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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@v3
with:
version: v1.54

- name: Vet
run: make vet
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ generate: tidy

# Coding style static check.
lint: tidy
@echo "Please setup a linter!"
#golangci-lint run
#staticcheck go list ./...

golangci-lint run

vet: tidy
go vet ./...
Expand Down

0 comments on commit 7a9a245

Please sign in to comment.