From e691e918942a197cf57a3d27bae3273ab16a3ed2 Mon Sep 17 00:00:00 2001 From: Max Chadwick Date: Fri, 15 Jul 2022 22:13:50 -0400 Subject: [PATCH] Add test to GitHub actions --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9557982..8b984b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,11 @@ jobs: - name: Display Go version run: go version - - name: Run build + - name: Run test and build run: | export PATH=$PATH:$(go env GOPATH)/bin go get -u github.com/shuLhan/go-bindata/... go-bindata -pkg bindata -o bindata/bindata.go etc/* GO111MODULE=on go get ./... + GO111MODULE=on go test -v ./... GO111MODULE=on go build -ldflags "-X main.version=cibuild" -o dbanon main.go \ No newline at end of file