-
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.
* Feat: support OpenTofu * fix pipeline * more changes * use opentofu * added arg default-to-terraform
- Loading branch information
1 parent
ba81502
commit a62f048
Showing
10 changed files
with
113 additions
and
111 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 |
---|---|---|
|
@@ -11,9 +11,9 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
- name: Go fmt | ||
|
@@ -40,9 +40,9 @@ jobs: | |
|
||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
id: go | ||
|
@@ -83,29 +83,52 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
id: go | ||
- name: Get dependencies | ||
run: | | ||
go mod tidy | ||
- name: Install Terraform | ||
uses: hashicorp/setup-terraform@v2 | ||
uses: hashicorp/setup-terraform@v3 | ||
with: | ||
terraform_version: 1.2.5 | ||
- name: Print Terraform version | ||
run: | | ||
terraform --version | ||
- name: Install Terragrunt | ||
uses: autero1/[email protected].1 | ||
uses: autero1/[email protected].2 | ||
with: | ||
terragrunt_version: 0.38.5 | ||
terragrunt_version: 0.54.22 | ||
- name: Print Terragrunt version | ||
run: | | ||
terragrunt --version | ||
- name: Test | ||
run: | | ||
go test -v -run ^TestTerragruntWithCache$ | ||
opentofu-integration-tests: | ||
name: OpenTofu Integration Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
id: go | ||
- name: Get dependencies | ||
run: | | ||
go mod tidy | ||
- name: Install OpenTofu | ||
uses: opentofu/setup-opentofu@v1 | ||
- name: Print OpenTofu version | ||
run: | | ||
tofu --version | ||
- name: Test | ||
run: | | ||
go test -v -run ^TestOpenTofu$ |
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.