mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Add make target to run Go tests.
This commit is contained in:
committed by
Martin Etmajer
parent
b443a57db5
commit
49dc93e4e9
7
Makefile
7
Makefile
@@ -8,10 +8,11 @@ LICENSE := MIT
|
||||
VERSION := $(shell cat ./VERSION)
|
||||
|
||||
GOBUILD := go build -ldflags "-X main.version=$(VERSION)"
|
||||
GOPKGS := $(shell go list ./... | grep -v /vendor)
|
||||
|
||||
|
||||
.PHONY: all
|
||||
all: clean deps lint build
|
||||
all: clean deps lint test build
|
||||
|
||||
.PHONY: authors
|
||||
authors:
|
||||
@@ -48,3 +49,7 @@ deps:
|
||||
release:
|
||||
git tag -a v$(VERSION) -m v$(VERSION)
|
||||
git push --tags
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -v $(GOPKGS)
|
||||
|
||||
Reference in New Issue
Block a user