Skip to content

Commit

Permalink
Add go mod verification in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinrahman committed Sep 25, 2019
1 parent 6258ff3 commit 69f98cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,13 @@ verify:
./hack/verify-boilerplate.sh
./hack/verify-doctoc.sh
./hack/verify-generated-files.sh
$(MAKE) verify-modules

.PHONY: verify-modules
verify-modules: modules
@if !(git diff --quiet HEAD -- go.sum go.mod hack/tools/go.mod hack/tools/go.sum); then \
echo "go module files are out of date"; exit 1; \
fi

.PHONY: clean-book
clean-book: ## Remove all generated GitBook files
Expand Down

0 comments on commit 69f98cc

Please sign in to comment.