-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: terratag inconsistent behaviour with the google-beta provider (#173
) * Fix: terratag inconsistent behaviour with the google-beta provider * added test and fixed bug * additional fixes * fixed 0.12.x issues * change order to remove warnings * change order to remove warnings
- Loading branch information
1 parent
4c0e957
commit 016ab4c
Showing
27 changed files
with
143 additions
and
753 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 |
---|---|---|
|
@@ -10,22 +10,22 @@ jobs: | |
timeout-minutes: 10 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Go fmt | ||
run: | | ||
! go fmt ./... | read | ||
- name: Go vet | ||
run: | | ||
! go vet ./... | read | ||
- name: Go staticcheck | ||
uses: dominikh/staticcheck-action@v1.2.0 | ||
uses: dominikh/staticcheck-action@v1.3.0 | ||
with: | ||
version: "2022.1" | ||
version: "2023.1.3" | ||
install-go: false | ||
- name: Go Test | ||
run: SKIP_INTEGRATION_TESTS=1 go test -v ./... | ||
|
@@ -39,34 +39,28 @@ jobs: | |
terraform_version: ['12','13','14','15','latest'] | ||
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod tidy | ||
- name: Install tfenv | ||
run: | | ||
git clone https://github.com/tfutils/tfenv.git $GITHUB_WORKSPACE/.tfenv | ||
echo "$GITHUB_WORKSPACE/.tfenv/bin" >> $GITHUB_PATH | ||
- name: Install terraform | ||
working-directory: test/tfenvconf/terraform_${{ matrix.terraform_version }} | ||
run: | | ||
tfenv install | ||
tfenv use | ||
- name: Print Terraform version | ||
run: | | ||
terraform --version | ||
- name: Set Test-Suite | ||
id: test-suite | ||
env: | ||
|
@@ -87,39 +81,31 @@ jobs: | |
terragrunt-integration-tests: | ||
name: Terragrunt Integration Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.19 | ||
id: go | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get dependencies | ||
run: | | ||
go mod tidy | ||
- name: Install Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
with: | ||
terraform_version: 1.2.5 | ||
|
||
- name: Print Terraform version | ||
run: | | ||
terraform --version | ||
- name: Install Terragrunt | ||
uses: autero1/[email protected] | ||
with: | ||
terragrunt_version: 0.38.5 | ||
|
||
- name: Print Terragrunt version | ||
run: | | ||
terragrunt --version | ||
- name: Test | ||
run: | | ||
go test -v -run ^TestTerragruntWithCache$ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.