ci: require Postgres-backed search definition integration path
This commit is contained in:
@@ -133,10 +133,11 @@ jobs:
|
||||
URL="postgres://opt_ci:$PASS@$FOUND:5432/opt_ci"
|
||||
echo "TEST_DATABASE_URL=$URL" >> "$GITHUB_ENV"
|
||||
echo "DATASET_TEST_DATABASE_URL=$URL" >> "$GITHUB_ENV"
|
||||
- name: Integration tests against LIVE OpenSearch + ClickHouse (blocking)
|
||||
echo "SEARCH_DEFINITION_TEST_DATABASE_URL=$URL" >> "$GITHUB_ENV"
|
||||
- name: Integration tests against LIVE OpenSearch + ClickHouse + Postgres (blocking)
|
||||
run: |
|
||||
set -eu
|
||||
[ -n "${OPENSEARCH_URL:-}" ] && [ -n "${CLICKHOUSE_URL:-}" ]
|
||||
[ -n "${OPENSEARCH_URL:-}" ] && [ -n "${CLICKHOUSE_URL:-}" ] && [ -n "${SEARCH_DEFINITION_TEST_DATABASE_URL:-}" ]
|
||||
pnpm vitest run tests/integration 2>&1 | tee /tmp/itest.log
|
||||
if grep -qE "skipped" /tmp/itest.log && ! grep -qE "Tests [0-9]+ passed" /tmp/itest.log; then
|
||||
echo "FATAL: integration suites skipped instead of running"; exit 1
|
||||
|
||||
Reference in New Issue
Block a user