File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,21 +113,17 @@ jobs:
113113 dbt run --target snowflake || true
114114
115115 # Validate run_results.json: only error_model should be non-success
116- jq -e '
116+ if jq -e '
117117 [.results[] | select(.status != "success") | .unique_id]
118118 | length == 1 and .[0] == "model.elementary_integration_tests.error_model"
119- ' target/run_results.json > /dev/null
120- jq_exit=$?
121-
122- if [ $jq_exit -eq 0 ]; then
119+ ' target/run_results.json > /dev/null; then
123120 echo "Validation passed: only error_model failed."
124121 else
125122 echo "Validation failed. Unexpected failures:"
126123 jq '[.results[] | select(.status != "success") | .unique_id] | join(", ")' target/run_results.json
124+ exit 1
127125 fi
128126
129- exit $jq_exit
130-
131127 - name : Test e2e dbt project
132128 working-directory : ${{ env.E2E_DBT_PROJECT_DIR }}
133129 continue-on-error : true
You can’t perform that action at this time.
0 commit comments