From 7babb396bc110889b14ff2d9f5ca0bea02eaff3f Mon Sep 17 00:00:00 2001 From: njuguna-n <141340177+njuguna-n@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:28:16 +0300 Subject: [PATCH] fix: fail builds if dbt run fails --- tests/run_dbt_tests_docker.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/run_dbt_tests_docker.sh b/tests/run_dbt_tests_docker.sh index 909344ad..76740e05 100755 --- a/tests/run_dbt_tests_docker.sh +++ b/tests/run_dbt_tests_docker.sh @@ -3,6 +3,10 @@ echo Install dbt dependencies ... dbt deps echo Running dbt ... dbt run +run_exit_status=$? +if [ $run_exit_status -ne 0 ]; then + echo "DBT run failed" + exit $run_exit_status +fi echo Running tests ... dbt test -