From 65e2dea2fc5a60cbd441b6d8396a0128127645f2 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Tue, 18 Mar 2025 17:31:05 +0100 Subject: [PATCH] smoke test with env var sourcing included --- .azure-pipelines.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 0a4aab3..916e26f 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -19,5 +19,8 @@ steps: displayName: 'Load env' - script: | + cp ~/dbt-ci/.env . + echo "POSTGRES_DATABASE=${BUILD_SOURCEBRANCH#refs/heads/}" >> .env + set -a && source .env && set +a psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c "SELECT 1 FROM pg_database WHERE datname = 'postgres';" displayName: 'Smoke test Postgres connection' \ No newline at end of file