From 00cba176963d1344073c957f90504feaf992cf99 Mon Sep 17 00:00:00 2001 From: Simon Prochazka Date: Tue, 9 Jul 2019 16:37:18 +0200 Subject: [PATCH] chore: check for unnecessary packages during CI (#1075) - to prevent need for manual adjustments such as in https://github.com/goreleaser/goreleaser/commit/c338cfb --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6afcd6e21..31ab37d18 100644 --- a/Makefile +++ b/Makefile @@ -36,8 +36,14 @@ lint: ./bin/misspell -error **/* .PHONY: lint +# Clean go.mod +go-mod-tidy: + go mod tidy -v + git diff-index --quiet HEAD || echo "Go mod tidy failed. Please run it locally" +.PHONY: go-mod-tidy + # Run all the tests and code checks -ci: build test lint +ci: build test lint go-mod-tidy .PHONY: ci # Build a beta version of goreleaser