-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document which parameters are ForceNew (#374)
Add documentation for the end user to indicate which attributes will cause a resource to be replaced rather than just updated. Also update dependencies & GitHub actions to the latest version
- Loading branch information
Showing
21 changed files
with
157 additions
and
1,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,60 +14,28 @@ on: | |
paths-ignore: | ||
- '**.md' | ||
env: | ||
GO_VERSION: "1.18" | ||
TERRAFORM_VERSION: "1.2.6" | ||
|
||
jobs: | ||
go_mod_download: | ||
name: go mod download | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- uses: actions/[email protected] | ||
continue-on-error: true | ||
id: cache-go-pkg-mod | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- if: steps.cache-go-pkg-mod.outputs.cache-hit != 'true' || steps.cache-go-pkg-mod.outcome == 'failure' | ||
run: go mod download | ||
|
||
go_build: | ||
name: go build | ||
needs: [go_mod_download] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/cache@v3.0.5 | ||
- uses: actions/cache@v3.3.1 | ||
continue-on-error: true | ||
id: cache-terraform-plugin-dir | ||
timeout-minutes: 2 | ||
with: | ||
path: terraform-plugin-dir | ||
key: ${{ runner.os }}-terraform-plugin-dir-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure' | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4.0.1 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
# See also: https://github.com/actions/setup-go/issues/54 | ||
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure' | ||
name: go env | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | ||
go-version-file: go.mod | ||
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure' | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ env.GOCACHE }} | ||
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure' | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
name: go mod download | ||
run: go mod download | ||
- if: steps.cache-terraform-plugin-dir.outputs.cache-hit != 'true' || steps.cache-terraform-plugin-dir.outcome == 'failure' | ||
name: go build | ||
run: go build -o terraform-plugin-dir/registry.terraform.io/RedisLabs/rediscloud/99.99.99/$(go env GOOS)_$(go env GOARCH)/terraform-provider-rediscloud . | ||
|
@@ -78,21 +46,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/cache@v3.0.5 | ||
- uses: actions/cache@v3.3.1 | ||
continue-on-error: true | ||
id: cache-terraform-providers-schema | ||
timeout-minutes: 2 | ||
with: | ||
path: terraform-providers-schema | ||
key: ${{ runner.os }}-terraform-providers-schema-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- if: steps.cache-terraform-providers-schema.outputs.cache-hit != 'true' || steps.cache-terraform-providers-schema.outcome == 'failure' | ||
uses: actions/cache@v3.0.5 | ||
uses: actions/cache@v3.3.1 | ||
timeout-minutes: 2 | ||
with: | ||
path: terraform-plugin-dir | ||
key: ${{ runner.os }}-terraform-plugin-dir-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- if: steps.cache-terraform-providers-schema.outputs.cache-hit != 'true' || steps.cache-terraform-providers-schema.outcome == 'failure' | ||
uses: hashicorp/[email protected].0 | ||
uses: hashicorp/[email protected].3 | ||
with: | ||
terraform_version: ${{ env.TERRAFORM_VERSION }} | ||
terraform_wrapper: false | ||
|
@@ -124,26 +92,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v4.0.1 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
# See also: https://github.com/actions/setup-go/issues/54 | ||
- name: go env | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | ||
- uses: actions/[email protected] | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ${{ env.GOCACHE }} | ||
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- uses: actions/[email protected] | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- uses: dorny/[email protected] | ||
go-version-file: go.mod | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
filters: | | ||
|
@@ -182,23 +134,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
# See also: https://github.com/actions/setup-go/issues/54 | ||
- name: go env | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | ||
- uses: actions/[email protected] | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ${{ env.GOCACHE }} | ||
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('provider/**') }} | ||
- uses: actions/[email protected] | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
go-version-file: go.mod | ||
- run: make tfproviderlint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.