mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
GitHub Actions: Use latest golangci-lint and its GitHub Action
The version we were previously using does not support Go v1.24. Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
This commit is contained in:
4
.github/workflows/checks.yml
vendored
4
.github/workflows/checks.yml
vendored
@@ -210,9 +210,9 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
- name: "Code linting"
|
||||
uses: golangci/golangci-lint-action@e60da84bfae8c7920a47be973d75e15710aa8bd7 # v6.3.0
|
||||
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0
|
||||
with:
|
||||
version: v1.62
|
||||
version: v1.64.5
|
||||
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
||||
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@@ -47,7 +47,7 @@ protobuf:
|
||||
# Golangci-lint
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint:
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
|
||||
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 run --timeout 60m --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8 ./...
|
||||
|
||||
# Run license check
|
||||
.PHONY: license-check
|
||||
|
||||
Reference in New Issue
Block a user