Check gofmt in make test

This commit is contained in:
Junegunn Choi
2021-02-28 18:28:21 +09:00
parent c256442245
commit bb0502ff44
6 changed files with 13 additions and 12 deletions

View File

@@ -66,6 +66,7 @@ endif
all: target/$(BINARY)
test: $(SOURCES)
[ -z "$$(gofmt -s -d src)" ] || (gofmt -s -d src; exit 1)
SHELL=/bin/sh GOOS= $(GO) test -v -tags "$(TAGS)" \
github.com/junegunn/fzf/src \
github.com/junegunn/fzf/src/algo \