Skip to content

Commit

Permalink
Ensuring Teardown happens whether deployment is successful or fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tmathew committed May 9, 2024
1 parent 79c37a3 commit 8ee69d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ jobs:
echo "::endgroup::"
echo "::group::Testing Deployment using ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Deployment Completed!"
else
echo "Deployment Failed. Proceeding to Teardown."
fi
echo "::endgroup::"
echo "::group::Tearing down up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/teardown/${SCENARIO_NAME}
echo "::endgroup::"
if [ $RESULT -ne 0 ]; then
exit 1
fi

0 comments on commit 8ee69d3

Please sign in to comment.