Skip to content

Commit db481af

Browse files
committed
WIP
1 parent 352212f commit db481af

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/actions/test-provider-tfe/action.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,23 @@ runs:
127127
GITHUB_WORKSPACE_IDENTIFIER: "hashicorp/terraform-random-module"
128128
GITHUB_WORKSPACE_BRANCH: "main"
129129
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
133130
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+
134135
if [ "${{ inputs.test_name }}" = "tests" ] && [ -n "${{ steps.test_split.outputs.run }}" ]; then
135136
TEST_PATTERN="${{ steps.test_split.outputs.run }}"
136137
else
137138
TEST_PATTERN="${{ inputs.list_tests }}"
138139
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"
140147
141148
- name: Upload test artifacts
142149
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0

0 commit comments

Comments
 (0)