From 3fadb26d1af60da1a98b943c1d5fcbe2042491c5 Mon Sep 17 00:00:00 2001 From: Will McCutchen <will@mccutch.org> Date: Mon, 21 Sep 2020 18:08:58 -0400 Subject: [PATCH] Fail CI builds if static assets change --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7bbc9e6..c4413fd 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) -- GitLab