fix: run make lint same way as in ci

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
Mario Constanti 2024-02-22 16:54:20 +01:00
parent b8a9b6c89b
commit 73eb21438a
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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