diff --git a/Makefile b/Makefile
index 7bbc9e6c4bd254da88fa12b6889b7a5652d1f51a..c4413fde8f4e30a15ecd48524d0adb5770855f04 100644
--- a/Makefile
+++ b/Makefile
@@ -62,11 +62,13 @@ $(GENERATED_ASSETS_PATH): $(TOOL_GOBINDATA) static/*
 test:
 	go test $(TEST_ARGS) ./...
 
+
 # Test command to run for continuous integration, which includes code coverage
 # based on codecov.io's documentation:
 # https://github.com/codecov/example-go/blob/b85638743b972bd0bd2af63421fe513c6f968930/README.md
-testci:
+testci: build
 	go test $(TEST_ARGS) $(COVERAGE_ARGS) ./...
+	git diff --exit-code
 
 testcover: testci
 	go tool cover -html=$(COVERAGE_PATH)