Skip to content

Commit 8b5c852

Browse files
committed
fix: acc test worflow
1 parent 603ede8 commit 8b5c852

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name: Tests
66
on:
77
pull_request:
88
paths-ignore:
9-
- 'README.md'
9+
- "README.md"
1010
push:
1111
paths-ignore:
12-
- 'README.md'
12+
- "README.md"
1313

1414
# Testing only needs permissions to read the repository contents.
1515
permissions:
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
2626
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2727
with:
28-
go-version-file: 'go.mod'
28+
go-version-file: "go.mod"
2929
cache: true
3030
- run: go mod download
3131
- run: go build -v .
@@ -40,13 +40,13 @@ jobs:
4040
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
4141
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
4242
with:
43-
go-version-file: 'go.mod'
43+
go-version-file: "go.mod"
4444
cache: true
4545
# Temporarily download Terraform 1.8 prerelease for function documentation support.
4646
# When Terraform 1.8.0 final is released, this can be removed.
4747
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
4848
with:
49-
terraform_version: '1.8.0-alpha20240216'
49+
terraform_version: "1.8.0-alpha20240216"
5050
terraform_wrapper: false
5151
- run: go generate ./...
5252
- name: git diff
@@ -63,18 +63,20 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
# list whatever Terraform versions here you would like to support
6766
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.*"
7375
steps:
7476
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
7577
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
7678
with:
77-
go-version-file: 'go.mod'
79+
go-version-file: "go.mod"
7880
cache: true
7981
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
8082
with:
@@ -83,5 +85,7 @@ jobs:
8385
- run: go mod download
8486
- env:
8587
TF_ACC: "1"
88+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
89+
OPENAI_TEST_ORGANIZATION_ID: ${{ secrets.OPENAI_TEST_ORGANIZATION_ID }}
8690
run: go test -v -cover ./internal/provider/
8791
timeout-minutes: 10

0 commit comments

Comments
 (0)