Skip to content

Commit 99ecdd4

Browse files
ci: test multiple versions of terraform
1 parent 81e5c55 commit 99ecdd4

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,15 +20,15 @@ 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
permissions:
2727
contents: read
2828

2929
jobs:
30-
testacc:
31-
name: Acceptance Test
30+
acceptance:
31+
name: Acceptance Tests (Terraform ${{ matrix.terraform-version }}, Cloudstack ${{ matrix.cloudstack-version }})
3232
runs-on: ubuntu-22.04
3333
env:
3434
CLOUDSTACK_API_URL: http://localhost:8080/client/api
@@ -76,18 +76,35 @@ jobs:
7676
- name: Create extra resources
7777
run: |
7878
cmk -u $CLOUDSTACK_API_URL -k $CLOUDSTACK_API_KEY -s $CLOUDSTACK_SECRET_KEY -o json create project name=terraform displaytext=terraform
79+
- uses: hashicorp/setup-terraform@v2
80+
with:
81+
terraform_version: ${{ matrix.terraform-version }}
82+
terraform_wrapper: false
7983
- name: Run acceptance test
8084
run: |
8185
make testacc
8286
services:
8387
cloudstack-simulator:
84-
image: apache/cloudstack-simulator:${{ matrix.cloudstack_version }}
88+
image: apache/cloudstack-simulator:${{ matrix.cloudstack-version }}
8589
ports:
8690
- 8080:5050
8791
strategy:
8892
fail-fast: false
8993
matrix:
90-
cloudstack_version:
94+
terraform-version:
95+
- '0.12.*'
96+
- '0.13.*'
97+
- '0.14.*'
98+
- '0.15.*'
99+
- '1.0.*'
100+
- '1.1.*'
101+
- '1.2.*'
102+
- '1.3.*'
103+
- '1.4.*'
104+
- '1.5.*'
105+
- '1.6.*'
106+
- '1.7.*'
107+
cloudstack-version:
91108
- 4.17.2.0
92109
- 4.18.1.0
93110
- 4.19.0.0

0 commit comments

Comments
 (0)