Skip to content

Commit d32d193

Browse files
committed
Updating testing matrix (#112)
1 parent 200f9fe commit d32d193

File tree

1 file changed

+28
-20
lines changed

1 file changed

+28
-20
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,42 @@ jobs:
4343

4444
# run acceptance tests in a matrix with Terraform core versions
4545
test:
46-
name: Matrix Test
46+
name: 'Acc. Tests (OS: ${{ matrix.os }} / TF: ${{ matrix.terraform }})'
4747
needs: build
4848
runs-on: ${{ matrix.os }}
4949
timeout-minutes: 15
5050
strategy:
5151
fail-fast: false
5252
matrix:
53-
os: [macos-latest, windows-latest, ubuntu-latest]
53+
os:
54+
- macos-latest
55+
- windows-latest
56+
- ubuntu-latest
5457
terraform:
55-
- '0.12.31'
56-
- '0.13.7'
57-
- '0.14.11'
58-
- '0.15.1'
58+
- '0.12.*'
59+
- '0.13.*'
60+
- '0.14.*'
61+
- '0.15.*'
62+
- '1.0.*'
63+
- '1.1.*'
64+
- '1.2.*'
65+
- '1.3.*'
5966
steps:
6067

61-
- name: Check out code into the Go module directory
62-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
68+
- name: Check out code
69+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
6370

64-
- name: Set up Go
65-
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
66-
with:
67-
go-version-file: 'go.mod'
68-
id: go
71+
- name: Setup Go
72+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
73+
with:
74+
go-version-file: 'go.mod'
75+
check-latest: true
6976

70-
- name: TF acceptance tests
71-
timeout-minutes: 10
72-
env:
73-
TF_ACC: "1"
74-
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
75-
run: |
76-
go test -v -cover ./internal/provider/
77+
- name: Setup Terraform ${{ matrix.terraform }}
78+
uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
79+
with:
80+
terraform_version: ${{ matrix.terraform }}
81+
terraform_wrapper: false
82+
83+
- name: Run acceptance test
84+
run: make testacc

0 commit comments

Comments
 (0)