@@ -6,10 +6,10 @@ name: Tests
6
6
on :
7
7
pull_request :
8
8
paths-ignore :
9
- - ' README.md'
9
+ - " README.md"
10
10
push :
11
11
paths-ignore :
12
- - ' README.md'
12
+ - " README.md"
13
13
14
14
# Testing only needs permissions to read the repository contents.
15
15
permissions :
25
25
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
26
26
- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
27
27
with :
28
- go-version-file : ' go.mod'
28
+ go-version-file : " go.mod"
29
29
cache : true
30
30
- run : go mod download
31
31
- run : go build -v .
@@ -40,13 +40,13 @@ jobs:
40
40
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
41
41
- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
42
42
with :
43
- go-version-file : ' go.mod'
43
+ go-version-file : " go.mod"
44
44
cache : true
45
45
# Temporarily download Terraform 1.8 prerelease for function documentation support.
46
46
# When Terraform 1.8.0 final is released, this can be removed.
47
47
- uses : hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
48
48
with :
49
- terraform_version : ' 1.8.0-alpha20240216'
49
+ terraform_version : " 1.8.0-alpha20240216"
50
50
terraform_wrapper : false
51
51
- run : go generate ./...
52
52
- name : git diff
@@ -63,18 +63,20 @@ jobs:
63
63
strategy :
64
64
fail-fast : false
65
65
matrix :
66
- # list whatever Terraform versions here you would like to support
67
66
terraform :
68
- - ' 1.0.*'
69
- - ' 1.1.*'
70
- - ' 1.2.*'
71
- - ' 1.3.*'
72
- - ' 1.4.*'
67
+ - " 1.0.*"
68
+ - " 1.1.*"
69
+ - " 1.2.*"
70
+ - " 1.3.*"
71
+ - " 1.4.*"
72
+ - " 1.5.*"
73
+ - " 1.6.*"
74
+ - " 1.7.*"
73
75
steps :
74
76
- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
75
77
- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
76
78
with :
77
- go-version-file : ' go.mod'
79
+ go-version-file : " go.mod"
78
80
cache : true
79
81
- uses : hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
80
82
with :
83
85
- run : go mod download
84
86
- env :
85
87
TF_ACC : " 1"
88
+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
89
+ OPENAI_TEST_ORGANIZATION_ID : ${{ secrets.OPENAI_TEST_ORGANIZATION_ID }}
86
90
run : go test -v -cover ./internal/provider/
87
91
timeout-minutes : 10
0 commit comments