From 9313ce99f8c776303eb09daf9e00c25007476e6d Mon Sep 17 00:00:00 2001 From: Mykhailo Bobrovskyi Date: Sat, 17 Aug 2024 00:52:36 +0300 Subject: [PATCH] Verify new files added to git. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 269790b13e..1444ad9918 100644 --- a/Makefile +++ b/Makefile @@ -169,9 +169,11 @@ lint-fix: golangci-lint shell-lint: ## Run shell linting. $(PROJECT_DIR)/hack/shellcheck/verify.sh +PATHS_TO_VERIFY := config/components apis charts/kueue/templates client-go site/ .PHONY: verify verify: gomod-verify ci-lint fmt-verify shell-lint toc-verify manifests generate update-helm generate-apiref generate-kueuectl-docs prepare-release-branch - git --no-pager diff --exit-code config/components apis charts/kueue/templates client-go site/ + git --no-pager diff --exit-code $(PATHS_TO_VERIFY) + if git ls-files --exclude-standard --others $(PATHS_TO_VERIFY) | grep -q . ; then exit 1; fi ##@ Build