Skip to content

Commit 3635c09

Browse files
ci: test multiple versions of terraform
1 parent 3c82bfa commit 3635c09

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/testacc.yml renamed to .github/workflows/acceptance.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ name: Acceptance Test
2020
on: [push, pull_request]
2121

2222
concurrency:
23-
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-testacc
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-acceptance
2424
cancel-in-progress: true
2525

2626
jobs:
27-
testacc:
28-
name: Acceptance Test
27+
acceptance:
28+
name: Acceptance Tests (Terraform ${{ matrix.terraform-version }}, Cloudstack ${{ matrix.cloudstack-version }})
2929
runs-on: ubuntu-22.04
3030
env:
3131
CLOUDSTACK_API_URL: http://localhost:8080/client/api
@@ -73,18 +73,35 @@ jobs:
7373
- name: Create extra resources
7474
run: |
7575
cmk -u $CLOUDSTACK_API_URL -k $CLOUDSTACK_API_KEY -s $CLOUDSTACK_SECRET_KEY -o json create project name=terraform displaytext=terraform
76+
- uses: hashicorp/setup-terraform@v2
77+
with:
78+
terraform_version: ${{ matrix.terraform-version }}
79+
terraform_wrapper: false
7680
- name: Run acceptance test
7781
run: |
7882
make testacc
7983
services:
8084
cloudstack-simulator:
81-
image: apache/cloudstack-simulator:${{ matrix.cloudstack_version }}
85+
image: apache/cloudstack-simulator:${{ matrix.cloudstack-version }}
8286
ports:
8387
- 8080:5050
8488
strategy:
8589
fail-fast: false
8690
matrix:
87-
cloudstack_version:
91+
terraform-version:
92+
- '0.12.*'
93+
- '0.13.*'
94+
- '0.14.*'
95+
- '0.15.*'
96+
- '1.0.*'
97+
- '1.1.*'
98+
- '1.2.*'
99+
- '1.3.*'
100+
- '1.4.*'
101+
- '1.5.*'
102+
- '1.6.*'
103+
- '1.7.*'
104+
cloudstack-version:
88105
- 4.17.2.0
89106
- 4.18.1.0
90107
- 4.19.0.0

0 commit comments

Comments
 (0)