Skip to content

Commit

Permalink
chore: use golangci lint action instead
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Khoshnoodi <[email protected]>
  • Loading branch information
mehdy committed May 1, 2024
1 parent a1d6437 commit 62ef132
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,9 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Check lints
run: sudo make lint
- name: Golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.57.2
args: --timeout 3m
skip-pkg-cache: true
File renamed without changes.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ifneq ($(CURRENT_LINTER_VERSION), $(LINTER_VERSION))
endif

lint: lintdeps ## to lint the files
$(LINTER) run --config=.golangci-lint.yml ./...
$(LINTER) run --config=.golangci.yml ./...

build: ## Build the binary file
@go build -v -ldflags="$(LD_FLAGS)" $(PKG)/cmd/$(PROJECT_NAME)
Expand Down

0 comments on commit 62ef132

Please sign in to comment.