Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Nov 26, 2023
1 parent 4f171c0 commit 8f24995
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,14 @@ jobs:
../../scripts/local.sh ../../dist 0.0.0-pre.0
terraform init > /dev/null
terraform apply --auto-approve
terraform plan -no-color -var="schema=schema-t2" > stdout.txt
terraform plan -no-color -var schema="schema-t2" > stdout.txt
cat stdout.txt | grep --silent "Plan: 0 to add, 1 to change, 0 to destroy."
cat stdout.txt | grep --silent "DROP TABLE \`test\`.\`t2\`"
terraform plan -no-color -var="schema=schema-t2" -var="skip_drop_table=true" > stdout.txt
terraform plan -no-color -var schema="schema-t2" \
-var "skip_drop_table=true" > stdout.txt
cat stdout.txt | grep --silent "Plan: 0 to add, 1 to change, 0 to destroy."
# Expect to drop in the plan
# Expect no drop table statement in the plan
! cat stdout.txt | grep --silent "DROP TABLE \`test\`.\`t2\`"
terraform apply --auto-approve -no-color -var="schema=schema-t2" -var="skip_drop_table=true"
env:
Expand Down

0 comments on commit 8f24995

Please sign in to comment.