-
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.16 KB
/
acceptance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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/