Skip to content

Commit 78f9db4

Browse files
committed
ci: fixes
1 parent 893e6a9 commit 78f9db4

34 files changed

Lines changed: 220 additions & 58 deletions

File tree

.github/workflows/samples-terraform.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ jobs:
4141
- name: Build provider
4242
working-directory: ${{ matrix.sample }}
4343
run: go build -v ./...
44-
- name: Run acceptance tests
44+
- name: Run tests
4545
working-directory: ${{ matrix.sample }}
46-
run: TF_ACC=1 go test ./... -v -timeout 120m
46+
run: go test ./... -v -timeout 120m

samples/client/others/terraform/allof-discriminator/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
*.tfstate
99
*.tfstate.*
1010
.terraform/
11-
terraform.tfvars
11+
*.tfvars
12+
*.tfvars.json
1213
terraform-provider-allof

samples/client/others/terraform/allof-discriminator/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This Terraform provider was generated using [OpenAPI Generator](https://openapi-
55
## Requirements
66

77
- [Terraform](https://www.terraform.io/downloads.html) >= 1.0
8-
- [Go](https://golang.org/doc/install) >= 1.21
8+
- [Go](https://golang.org/doc/install) >= 1.22
99

1010
## Building The Provider
1111

@@ -39,6 +39,19 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or
3939

4040
To compile the provider, run `go install`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
4141

42+
For local development and testing, add a `dev_overrides` block to your `~/.terraformrc` so that Terraform uses the locally built binary instead of fetching from the registry:
43+
44+
```hcl
45+
provider_installation {
46+
dev_overrides {
47+
"registry.terraform.io/example/allof" = "${GOPATH}/bin"
48+
}
49+
direct {}
50+
}
51+
```
52+
53+
With `dev_overrides` configured, you do not need to run `terraform init` for the provider.
54+
4255
To generate or update documentation, run `go generate`.
4356

4457
In order to run the full suite of Acceptance tests, run `make testacc`.

samples/client/others/terraform/allof-discriminator/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/example/terraform-provider-allof
22

3-
go 1.22
3+
go 1.24.0
44

55
toolchain go1.24.4
66

samples/client/others/terraform/allof-discriminator/internal/provider/provider.go

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/terraform/oneof-anyof-required/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
*.tfstate
99
*.tfstate.*
1010
.terraform/
11-
terraform.tfvars
11+
*.tfvars
12+
*.tfvars.json
1213
terraform-provider-oneof

samples/client/others/terraform/oneof-anyof-required/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This Terraform provider was generated using [OpenAPI Generator](https://openapi-
55
## Requirements
66

77
- [Terraform](https://www.terraform.io/downloads.html) >= 1.0
8-
- [Go](https://golang.org/doc/install) >= 1.21
8+
- [Go](https://golang.org/doc/install) >= 1.22
99

1010
## Building The Provider
1111

@@ -39,6 +39,19 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or
3939

4040
To compile the provider, run `go install`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
4141

42+
For local development and testing, add a `dev_overrides` block to your `~/.terraformrc` so that Terraform uses the locally built binary instead of fetching from the registry:
43+
44+
```hcl
45+
provider_installation {
46+
dev_overrides {
47+
"registry.terraform.io/example/oneof-anyof" = "${GOPATH}/bin"
48+
}
49+
direct {}
50+
}
51+
```
52+
53+
With `dev_overrides` configured, you do not need to run `terraform init` for the provider.
54+
4255
To generate or update documentation, run `go generate`.
4356

4457
In order to run the full suite of Acceptance tests, run `make testacc`.

samples/client/others/terraform/oneof-anyof-required/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/example/terraform-provider-oneof-anyof
22

3-
go 1.22
3+
go 1.24.0
44

55
toolchain go1.24.4
66

samples/client/others/terraform/oneof-anyof-required/internal/client/model_object.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/others/terraform/oneof-anyof-required/internal/client/model_object2.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)