diff --git a/Makefile b/Makefile index 67f595fb4..a4964cb3e 100644 --- a/Makefile +++ b/Makefile @@ -166,6 +166,11 @@ test: cover: @$(MAKE) go.test.cover +## test-api: Run api test. ✨ +.PHONY: test-api +test-api: + @$(MAKE) go.test.api + ## updates: Check for updates to go.mod dependencies. ✨ .PHONY: updates @$(MAKE) go.updates diff --git a/scripts/make-rules/golang.mk b/scripts/make-rules/golang.mk index 29f527028..e0cb5861d 100644 --- a/scripts/make-rules/golang.mk +++ b/scripts/make-rules/golang.mk @@ -193,6 +193,12 @@ go.lint: tools.verify.golangci-lint go.test: @$(GO) test ./... +## go.test.api: Run api test +.PHONY: go.test.api +go.test.api: + @echo "===========> Run api test" + @$(ROOT_DIR)/scripts/install/test.sh openim::test::test + ## go.demo: Run demo .PHONY: go.demo go.demo: