Skip to content

Commit

Permalink
Ensure we always run the same golangci-lint version
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Apr 12, 2024
1 parent 9d20393 commit 4c6c0f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/push-pr-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
args: --config .golangci.yml --timeout 2m
version: v1.56.2
# Also need to update Makefile if/when renovate updates this
version: v1.56

- name: Test
run: go test ./...
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ BUILD_DATE := $(shell date +%s)

## lint
lint:
golangci-lint run --config .golangci.yml
go run github.com/golangci/golangci-lint/cmd/[email protected] run --config .golangci.yml

## lint-fix - auto fix lint errors - for the linters that support auto fix
lint-fix:
golangci-lint run --config .golangci.yml --fix
go run github.com/golangci/golangci-lint/cmd/[email protected] run --fix --config .golangci.yml

## Go test
test:
Expand Down

0 comments on commit 4c6c0f5

Please sign in to comment.