diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c02042f..208bfc8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 diff --git a/.golangci-lint.yml b/.golangci.yml similarity index 100% rename from .golangci-lint.yml rename to .golangci.yml diff --git a/Makefile b/Makefile index 5b3b17d..1bfb035 100644 --- a/Makefile +++ b/Makefile @@ -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)