1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

chore: check for unnecessary packages during CI (#1075)

- to prevent need for manual adjustments such as in https://github.com/goreleaser/goreleaser/commit/c338cfb
This commit is contained in:
Simon Prochazka 2019-07-09 16:37:18 +02:00 committed by Carlos Alexandro Becker
parent 249657eb0b
commit 00cba17696

View File

@ -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