Handle docker when running make test-logical-models

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8177
GitOrigin-RevId: 25faf2c94c5a605c49495e4da848683ae32c1927
This commit is contained in:
Tom Harding 2023-03-02 16:33:39 +00:00 committed by hasura-bot
parent 1574125f10
commit dd24a29419

View File

@ -133,8 +133,12 @@ test-integration-postgres: remove-tix-file
.PHONY: test-logical-models
## test-logical-models: run all tests for the Logical Model feature
test-logical-models:
docker compose up -d --wait postgres
HSPEC_MATCH=LogicalModels make test-unit
HSPEC_MATCH=LogicalModels make test-postgres
HASURA_TEST_BACKEND_TYPE=Postgres \
HSPEC_MATCH=LogicalModels \
GRAPHQL_ENGINE=$(GRAPHQL_ENGINE_PATH) \
cabal run api-tests:exe:api-tests
.PHONY: py-tests
## py-tests: run the python-based test suite