Skip to content

Commit 0f834d9

Browse files
authored
chore: Check in mocks and ensure they're up to date in presubmit checks (#109)
1 parent 0f219a6 commit 0f834d9

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ vet: ## Vet the code and dependencies
5555
go generate ./...
5656
go vet ./...
5757
go fmt ./...
58+
@git diff --quiet ||\
59+
{ echo "New file modification detected in the Git working tree. Please check in before commit."; git --no-pager diff --name-only | uniq | awk '{print " - " $$0}'; \
60+
if [ "${CI}" = true ]; then\
61+
exit 1;\
62+
fi;}
5863

5964
.PHONY: test
6065
test: ## Run tests.

pkg/aws/services/eks_mocks.go

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)