Upgrade Go and dependencies #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Real Provider Tests | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
IMPROVMX_API_TOKEN: ${{ secrets.IMPROVMX_TF_TEST }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 1.23 | |
- run: | | |
go mod download | |
go build . | |
- uses: hashicorp/setup-terraform@v3 | |
- run: | | |
cat <<~EOF >> ~/.terraformrc | |
provider_installation { | |
dev_overrides { | |
"issyl0/improvmx" = "/home/runner/work/terraform-provider-improvmx/terraform-provider-improvmx" | |
} | |
} | |
~EOF | |
- name: plan | |
run: terraform plan | |
working-directory: tests/acceptance/ | |
- name: apply | |
run: terraform apply -auto-approve | |
working-directory: tests/acceptance/ | |
- name: import | |
run: | | |
terraform state rm improvmx_domain.lychee | |
terraform import improvmx_domain.lychee lychee.systems | |
working-directory: tests/acceptance/ | |
- name: destroy | |
run: terraform destroy -auto-approve | |
working-directory: tests/acceptance/ |