From cb75d9148a872fab6bb810a171d1d3f5c27d4fef Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Mon, 26 Oct 2020 14:41:19 +0400 Subject: [PATCH] add tests to ci --- Makefile | 5 ++++- go.mod | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f2bf764..a72de3a 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file diff --git a/go.mod b/go.mod index 622de3c..f398e52 100644 --- a/go.mod +++ b/go.mod @@ -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 )