From 73eb21438adcfa8243a4cb2e97d69ce7a07ea53e Mon Sep 17 00:00:00 2001 From: Mario Constanti Date: Thu, 22 Feb 2024 16:54:20 +0100 Subject: [PATCH] fix: run make lint same way as in ci Signed-off-by: Mario Constanti --- .github/workflows/go-tests.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 9f8d82a9..17244a75 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -31,7 +31,7 @@ jobs: go-version: 'stable' - uses: actions/checkout@v3 - name: make lint - run: make golangci-lint && GOLANGCI_LINT_EXTRA_ARGS="--timeout=1m --build-tags testing" make lint + run: make golangci-lint && GOLANGCI_LINT_EXTRA_ARGS="--timeout=8m --build-tags testing" make lint - name: Verify go vendor, go modules and gofmt run: | sudo apt-get install -y jq diff --git a/Makefile b/Makefile index a68d14c1..8f4d2009 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ release: build-static create-release-files ## Create a release ##@ Lint / Verify .PHONY: lint lint: golangci-lint $(GOLANGCI_LINT) ## Run linting. - $(GOLANGCI_LINT) run -v $(GOLANGCI_LINT_EXTRA_ARGS) + $(GOLANGCI_LINT) run -v --build-tags testing $(GOLANGCI_LINT_EXTRA_ARGS) .PHONY: lint-fix lint-fix: golangci-lint $(GOLANGCI_LINT) ## Lint the codebase and run auto-fixers if supported by the linte