Skip to content

Commit

Permalink
Update integration tests to symlink tfswitch TOML in CWD to home dire…
Browse files Browse the repository at this point in the history
…ctory, if it exists
  • Loading branch information
MatthewJohn committed Jun 3, 2024
1 parent 8555500 commit 3630353
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ jobs:
go build -v -o build/tfswitch
mkdir `pwd`/bin/
find ./test-data/integration-tests/* -type d -print0 | while read -r -d $'\0' TEST_PATH; do
if test -f "${TEST_PATH}/.tfswitch.toml"
then
ln -sf "${TEST_PATH}/.tfswitch.toml" ~/.tfswitch.toml
else
{ test -f ~/.tfswitch.toml && rm ~/.tfswitch.toml; } || true
fi
./build/tfswitch -c "${TEST_PATH}" -b `pwd`/bin/terraform || exit 1
done
Expand Down

0 comments on commit 3630353

Please sign in to comment.