Skip to content

Commit 920294a

Browse files
committed
Use the latest terraform provider
1 parent b5faf4f commit 920294a

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/go.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,22 @@ jobs:
6262
with:
6363
name: Dependencies Updates
6464
path: dependencyUpdates.txt
65-
# - name: Test
66-
# run: go test -timeout 0 github.com/mcasperson/OctopusTerraformExport/cmd
67-
# shell: bash
68-
# env:
69-
# LICENSE: ${{ secrets.LICENSE }}
70-
# ECR_ACCESS_KEY: ${{ secrets.ECR_ACCESS_KEY }}
71-
# ECR_SECRET_KEY: ${{ secrets.ECR_SECRET_KEY }}
65+
- name: Clone the Terraform provider source
66+
run: git clone https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy.git
67+
shell: bash
68+
- name: Build the Terraform provider from source
69+
run: go build -o terraform-provider-octopusdeploy
70+
working-directory: terraform-provider-octopusdeploy
71+
- name: Override the location used by Terraform provider
72+
run: |-
73+
cat <<EOT >> ~/.terraformrc
74+
provider_installation {
75+
dev_overrides {
76+
"octopusdeploylabs/octopusdeploy" = "${{ github.workspace }}/terraform-provider-octopusdeploy"
77+
}
78+
direct {}
79+
}
80+
EOT
7281
- name: Test
7382
run: go install gotest.tools/gotestsum@latest; gotestsum --junitfile results.xml -- -v -timeout 0 -json ./...
7483
shell: bash

0 commit comments

Comments
 (0)