mirror of
https://github.com/kubereboot/kured.git
synced 2026-08-19 03:16:23 +00:00
Add github actions linting
Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
[tools]
|
||||
actionlint = "latest"
|
||||
cosign = "3.0.6"
|
||||
go = "1.26.4"
|
||||
golangci-lint = "2.12.2"
|
||||
|
||||
@@ -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) ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user