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:
10 files changed
+130
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user