Skip to content

Commit

Permalink
update to github actions file to meet new demo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-tmathew committed Nov 19, 2024
1 parent e878e17 commit 72d22c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dev-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ jobs:
- name: Test Schemachange on ${{ matrix.os }} targeting ${{ env.SNOWFLAKE_DATABASE }}.${{ env.MY_TARGET_SCHEMA }} schema
run: |
echo "::group::Setting up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/setup/${SCENARIO_NAME}
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}/1_setup
echo "::endgroup::"
echo "::group::Testing Rendering to ${MY_TARGET_SCHEMA}"
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/A__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/R__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/V1.0.0__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/2_test/A__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/2_test/R__render.sql
schemachange render --config-folder ./demo/${SCENARIO_NAME} ./demo/${SCENARIO_NAME}/2_test/V1.0.0__render.sql
echo "::endgroup::"
echo "::group::Testing Deployment using ${MY_TARGET_SCHEMA}"
set +e
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}/2_test
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Deployment Completed!"
Expand All @@ -81,7 +81,7 @@ jobs:
echo "::endgroup::"
set -e
echo "::group::Tearing down up ${MY_TARGET_SCHEMA}"
schemachange deploy --config-folder ./demo/teardown/${SCENARIO_NAME}
schemachange deploy --config-folder ./demo/${SCENARIO_NAME}/3_teardown
echo "::endgroup::"
if [ $RESULT -ne 0 ]; then
exit 1
Expand Down

0 comments on commit 72d22c8

Please sign in to comment.