Add github actions linting

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
This commit is contained in:
Jean-Philippe Evrard
2026-06-10 20:04:41 +02:00
parent d5e9a2e912
commit 8830c0bc9d
2 changed files with 11 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
[tools]
actionlint = "latest"
cosign = "3.0.6"
go = "1.26.4"
golangci-lint = "2.12.2"
+10 -2
View File
@@ -1,5 +1,5 @@
.DEFAULT: all
.PHONY: all clean install-tools dev-image release dev-manifest e2e-test minikube-publish test lint lint-docs
.PHONY: all clean install-tools dev-image release dev-manifest e2e-test minikube-publish test lint lint-go lint-sh lint-ghactions lint-docs
DH_ORG ?= kubereboot
IMAGE_NAME ?= $(DH_ORG)/kured
@@ -52,9 +52,17 @@ test: lint
@echo "Running short go tests"
go test -test.short -json ./... > test.json
lint:
lint: lint-sh lint-ghactions lint-go
lint-sh:
@echo "Running shellcheck"
find . -name '*.sh' | xargs -n1 shellcheck
lint-ghactions:
@echo "Running actionlint"
actionlint -verbose
lint-go:
@echo "Running golangci-lint..."
golangci-lint run --config $(GOLANGCI_CONFIG) ./...