mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
CI: Add macOS, Windows x64 and Linux arm64 test support (#1422)
* CI: Add macOS, Windows and Linux arm64 support * Modify arm64 job name to be inline with the others * linter: Prevent cache from causing "Cannot open: File exists" issues * Use setup-go and setup-node's inbuilt caching
This commit is contained in:
5
Makefile
5
Makefile
@@ -4,7 +4,6 @@ LINTPKG = github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.0
|
||||
LINTBIN = $(GOPATH)/bin/golangci-lint
|
||||
GCTLISTENPORT=9050
|
||||
GCTPROFILERLISTENPORT=8085
|
||||
CRON = $(TRAVIS_EVENT_TYPE)
|
||||
DRIVER ?= psql
|
||||
RACE_FLAG := $(if $(NO_RACE_TEST),,-race)
|
||||
CONFIG_FLAG = $(if $(CONFIG),-config $(CONFIG),)
|
||||
@@ -24,11 +23,7 @@ linter:
|
||||
check: linter test
|
||||
|
||||
test:
|
||||
ifeq ($(CRON), cron)
|
||||
go test $(RACE_FLAG) -tags=mock_test_off -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
else
|
||||
go test $(RACE_FLAG) -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
endif
|
||||
|
||||
build:
|
||||
go build $(LDFLAGS)
|
||||
|
||||
Reference in New Issue
Block a user