From 37ce886af0d423c48c7b23f7caf2859b63c81223 Mon Sep 17 00:00:00 2001 From: Alexander Ding Date: Wed, 26 Oct 2022 01:49:58 +0000 Subject: [PATCH] chore: make build compiles integration test --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3df32f34..e7661eca 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: test +all: build test # include release tools for building binary and testing targets include release-tools/build.make @@ -8,7 +8,7 @@ GOPATH ?= $(shell go env GOPATH) REPO_ROOT = $(CURDIR) BUILD_DIR = bin BUILD_TOOLS_DIR = $(BUILD_DIR)/tools -GO_ENV_VARS = GO111MODULE=on GOOS=windows +GO_ENV_VARS = GO111MODULE=on GOOS=windows GOARCH=amd64 # see https://github.com/golangci/golangci-lint/releases GOLANGCI_LINT_VERSION = v1.21.0 @@ -19,6 +19,10 @@ lint: $(GOLANGCI_LINT) $(GO_ENV_VARS) $(GOLANGCI_LINT) run git --no-pager diff --exit-code +.PHONY: build +build: + ${GO_ENV_VARS} go test -c ./integrationtests -o ./bin/integrationtests.test.exe + .PHONY: test-go test: test-go test-go: