You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/plugin/testing/acceptance-tests/index.mdx
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ Create a [GitHub Actions workflow](https://docs.github.com/en/actions/using-work
136
136
137
137
Use the [`matrix`](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) strategy for more advanced configuration, such as running acceptance testing against multiple Terraform CLI versions.
138
138
139
-
The following example workflow runs acceptance testing for the provider using the latest patch versions of Go 1.19 and Terraform CLI 1.3:
139
+
The following example workflow runs acceptance testing for the provider using the latest patch versions of the Go version in the `go.mod` file and Terraform CLI 1.5:
140
140
141
141
```yaml
142
142
name: Terraform Provider Tests
@@ -157,12 +157,12 @@ jobs:
157
157
runs-on: ubuntu-latest
158
158
steps:
159
159
- uses: actions/checkout@v3
160
-
- uses: actions/setup-go@v3
160
+
- uses: actions/setup-go@v4
161
161
with:
162
-
go-version: '1.19'
162
+
go-version-file: 'go.mod'
163
163
- uses: hashicorp/setup-terraform@v2
164
164
with:
165
-
terraform_version: '1.3.*'
165
+
terraform_version: '1.5.*'
166
166
terraform_wrapper: false
167
167
- run: go test -v -cover ./...
168
168
env:
@@ -172,14 +172,14 @@ jobs:
172
172
runs-on: ubuntu-latest
173
173
steps:
174
174
- uses: actions/checkout@v3
175
-
- uses: actions/setup-go@v3
175
+
- uses: actions/setup-go@v4
176
176
with:
177
-
go-version: '1.19'
177
+
go-version-file: 'go.mod'
178
178
- run: go test -v -cover ./...
179
179
```
180
180
181
181
182
-
The following example workflow runs acceptance testing for the provider using the latest patch versions of Go 1.19 and Terraform CLI 0.12 through 1.3:
182
+
The following example workflow runs acceptance testing for the provider using the latest patch versions of Go version in the `go.mod` file and Terraform CLI 0.12 through 1.5:
0 commit comments