File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ jobs:
611611 run : |
612612 echo "The terraform version was $DETECTED_TERRAFORM_VERSION"
613613
614- if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.10 "* ]]; then
614+ if [[ "$DETECTED_TERRAFORM_VERSION" != *"1.11 "* ]]; then
615615 echo "::error:: Latest version was not used"
616616 exit 1
617617 fi
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function set-test-args() {
2828 fi
2929
3030 if [[ " $TOOL_COMMAND_NAME " == " terraform" && $TERRAFORM_VER_MAJOR -ge 1 && $TERRAFORM_VER_MINOR -ge 11 ]]; then
31- TEST_ARGS=" $TEST_ARGS -junit-xml=$STEP_TMP_DIR /terraform_test .xml"
31+ TEST_ARGS=" $TEST_ARGS -junit-xml=$STEP_TMP_DIR /test-result .xml"
3232 fi
3333}
3434
@@ -49,8 +49,10 @@ function test() {
4949
5050 cat " $STEP_TMP_DIR /terraform_test.stderr"
5151
52- cp " $STEP_TMP_DIR /terraform_test.xml" " $GITHUB_WORKSPACE /$WORKSPACE_TMP_DIR /terraform_test.xml"
53- set_output junit-xml-path " $GITHUB_WORKSPACE /$WORKSPACE_TMP_DIR /terraform_test.xml"
52+ if [[ -f " $STEP_TMP_DIR /test-result.xml" ]]; then
53+ cp " $STEP_TMP_DIR /test-result.xml" " $GITHUB_WORKSPACE /$WORKSPACE_TMP_DIR /test-result.xml"
54+ set_output junit-xml-path " $GITHUB_WORKSPACE /$WORKSPACE_TMP_DIR /test-result.xml"
55+ fi
5456
5557 if [[ $TEST_EXIT -eq 0 ]]; then
5658 # Workaround a bit of stupidity in the terraform test command
You can’t perform that action at this time.
0 commit comments