ci: Run sdk and api tests in ci

This adds new makefile targets and configuration to run the tests in the
api and sdk modules. These do not run by default since `go test ./...`
does not cross module boundaries.
This commit is contained in:
Timothy Messier committed 2021-12-02 07:27:54 -05:00
1 parent 0bc9e30aa6
commit 0a4df95fdd
10 files changed
+130 -1

No files matched your search

+11 -1
View File
@@ -189,7 +189,6 @@ test-database-down:
make -C testing/dbtest/docker clean
.PHONY: test-ci
test-ci: install-go
test-ci: export CI_BUILD=1
test-ci:
CGO_ENABLED=$(CGO_ENABLED) BUILD_TAGS='$(BUILD_TAGS)' sh -c "'$(CURDIR)/scripts/build.sh'"
@@ -203,6 +202,17 @@ test-sql:
test:
go test ./... -timeout 30m
.PHONY: test-sdk
test-sdk:
$(MAKE) -C sdk/ test
.PHONY: test-api
test-api:
$(MAKE) -C api/ test
.PHONY: test-all
test-all: test-sdk test-api test
.PHONY: install-go
install-go:
./ci/goinstall.sh