Skip to content

Commit 48f0a67

Browse files
authored
Merge pull request #9363 from typeid/reproducible_plantuml
🌱 Verify plantuml image generation in CI
2 parents 2fa280f + 46e6209 commit 48f0a67

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ APIDIFF_OLD_COMMIT ?= $(shell git rev-parse origin/main)
607607
apidiff: $(GO_APIDIFF) ## Check for API differences
608608
$(GO_APIDIFF) $(APIDIFF_OLD_COMMIT) --print-compatible
609609

610-
ALL_VERIFY_CHECKS = licenses boilerplate shellcheck tiltfile modules gen conversions doctoc capi-book-summary
610+
ALL_VERIFY_CHECKS = licenses boilerplate shellcheck tiltfile modules gen conversions doctoc capi-book-summary diagrams
611611

612612
.PHONY: verify
613613
verify: $(addprefix verify-,$(ALL_VERIFY_CHECKS)) lint-dockerfiles ## Run all verify-* targets
@@ -674,6 +674,13 @@ verify-govulncheck: $(GOVULNCHECK) ## Verify code for vulnerabilities
674674
exit 1; \
675675
fi
676676

677+
.PHONY: verify-diagrams
678+
verify-diagrams: generate-diagrams ## Verify generated diagrams are up to date
679+
@if !(git diff --quiet HEAD); then \
680+
git diff; \
681+
echo "generated diagrams are out of date, run make generate-diagrams"; exit 1; \
682+
fi
683+
677684
.PHONY: verify-security
678685
verify-security: ## Verify code and images for vulnerabilities
679686
$(MAKE) verify-container-images && R1=$$? || R1=$$?; \

0 commit comments

Comments
 (0)