File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
.github/actions/test-provider-tfe Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,23 @@ runs:
127
127
GITHUB_WORKSPACE_IDENTIFIER : " hashicorp/terraform-random-module"
128
128
GITHUB_WORKSPACE_BRANCH : " main"
129
129
GITHUB_TOKEN : ${{ inputs.testing_github_token }}
130
- MOD_PROVIDER : github.com/hashicorp/terraform-provider-tfe
131
- MOD_TFE : github.com/hashicorp/terraform-provider-tfe/internal/provider
132
- MOD_VERSION : github.com/hashicorp/terraform-provider-tfe/version
133
130
run : |
131
+ # Debug: Print environment variables to verify they're set
132
+ echo "TFE_HOSTNAME: $TFE_HOSTNAME"
133
+ echo "TFE_TOKEN length: ${#TFE_TOKEN}"
134
+
134
135
if [ "${{ inputs.test_name }}" = "tests" ] && [ -n "${{ steps.test_split.outputs.run }}" ]; then
135
136
TEST_PATTERN="${{ steps.test_split.outputs.run }}"
136
137
else
137
138
TEST_PATTERN="${{ inputs.list_tests }}"
138
139
fi
139
- gotestsum --junitfile summary.xml --format short-verbose -- $MOD_PROVIDER $MOD_TFE $MOD_VERSION -v -timeout=60m -run "$TEST_PATTERN"
140
+
141
+ echo "Running tests with pattern: $TEST_PATTERN"
142
+
143
+ gotestsum --junitfile summary.xml --format short-verbose -- \
144
+ -mod=readonly \
145
+ ./internal/provider \
146
+ -v -timeout=60m -run "$TEST_PATTERN"
140
147
141
148
- name : Upload test artifacts
142
149
uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
You can’t perform that action at this time.
0 commit comments