File tree Expand file tree Collapse file tree 1 file changed +28
-20
lines changed Expand file tree Collapse file tree 1 file changed +28
-20
lines changed Original file line number Diff line number Diff line change @@ -43,34 +43,42 @@ jobs:
43
43
44
44
# run acceptance tests in a matrix with Terraform core versions
45
45
test :
46
- name : Matrix Test
46
+ name : ' Acc. Tests (OS: ${{ matrix.os }} / TF: ${{ matrix.terraform }}) '
47
47
needs : build
48
48
runs-on : ${{ matrix.os }}
49
49
timeout-minutes : 15
50
50
strategy :
51
51
fail-fast : false
52
52
matrix :
53
- os : [macos-latest, windows-latest, ubuntu-latest]
53
+ os :
54
+ - macos-latest
55
+ - windows-latest
56
+ - ubuntu-latest
54
57
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.*'
59
66
steps :
60
67
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
63
70
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
69
76
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
You can’t perform that action at this time.
0 commit comments