File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 30
30
pull-requests : write # Needed by sticky-pull-request-comment
31
31
steps :
32
32
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
33
+ # Avoid: cannot run Terraform provider tests: error calling terraform version command: fork/exec /tmp/plugintest-terraformXXX/terraform: text file busy also speeds up the tests as terraform will already exist on path.
34
+ # Also speeds up the tests
35
+ - uses : hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
36
+ with :
37
+ terraform_version : ' 1.11.x'
38
+ terraform_wrapper : false
33
39
- uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
34
40
with :
35
41
go-version-file : ' go.mod'
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ TF_VERSIONS_ARR=$(./scripts/get-terraform-supported-versions.sh "false")
20
20
21
21
TEST_SUITE_YAML_FILE=" .github/workflows/test-suite.yml"
22
22
ACCEPTANCE_TESTS_YAML_FILE=" .github/workflows/acceptance-tests.yml"
23
+ CODE_HEALTH_YAML_FILE=" .github/workflows/code-health.yml"
23
24
EXAMPLES_YAML_FILE=" .github/workflows/examples.yml"
24
25
TOOL_VERSIONS_FILE=" .tool-versions"
25
26
DOC_SCRIPT=" scripts/generate-doc.sh"
@@ -34,6 +35,9 @@ sed -i.bak -E "s|schedule_terraform_matrix: '.*'|schedule_terraform_matrix: '[\"
34
35
# Update Terraform version in examples.yml
35
36
sed -i.bak -E " s|terraform_version: '.*'|terraform_version: '$LATEST_TF_VERSION '|" " $EXAMPLES_YAML_FILE "
36
37
38
+ # Update Terraform version in code-health.yml
39
+ sed -i.bak -E " s|terraform_version: '.*'|terraform_version: '$LATEST_TF_VERSION '|" " $CODE_HEALTH_YAML_FILE "
40
+
37
41
# Update Terraform version in acceptance-tests.yml
38
42
sed -i.bak -E " s~terraform_version \|\| '[0-9]+\.[0-9]+\.x'~terraform_version \|\| '$LATEST_TF_VERSION '~" " $ACCEPTANCE_TESTS_YAML_FILE "
39
43
You can’t perform that action at this time.
0 commit comments