add tests to ci

This commit is contained in:
Laurent Le Houerou 2020-10-26 14:41:19 +04:00
parent 286b948ab2
commit cb75d9148a
2 changed files with 5 additions and 2 deletions

View File

@ -7,5 +7,8 @@ GO_FILES := $(shell find . -name '*.go' | grep -v /vendor/ | grep -v _test.go)
all: build
build: ## Build the binary file
test:
@go test ./...
build: test ## Build the binary file
@go build -i -v $(PKG)/cmd/dnsupdater

2
go.mod
View File

@ -11,5 +11,5 @@ require (
github.com/urfave/cli v1.20.0
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df // indirect
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
)