From 9a1b3b2818fdc1216fa79573d375c2cb24e90a66 Mon Sep 17 00:00:00 2001 From: Mykhailo Bobrovskyi Date: Mon, 19 Aug 2024 16:55:54 +0300 Subject: [PATCH] Verify new files added to git. (#2843) --- 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