Run license check in CI

This commit is contained in:
Katrina Verey
2022-04-01 17:42:38 -04:00
parent 0d32543ebd
commit 877d72b10b
3 changed files with 48 additions and 12 deletions

View File

@@ -114,18 +114,12 @@ prow-presubmit-check: \
.PHONY: license
license: $(MYGOBIN)/addlicense
$(MYGOBIN)/addlicense \
-y 2022 \
-c "The Kubernetes Authors." \
-f LICENSE_TEMPLATE \
-ignore "kyaml/internal/forked/github.com/**/*" \
-ignore "site/**/*" \
-ignore "**/*.md" \
-ignore "**/*.json" \
-ignore "**/*.yml" \
-ignore "**/*.yaml" \
-v \
.
./hack/add-license.sh run
.PHONY: check-license
check-license: $(MYGOBIN)/addlicense
./hack/add-license.sh check
.PHONY: lint
lint: $(MYGOBIN)/golangci-lint $(builtinplugins)