Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add workflow examples with tenv and tofu #193

Merged
merged 38 commits into from
Apr 9, 2024
Merged

ci: add workflow examples with tenv and tofu #193

merged 38 commits into from
Apr 9, 2024

Conversation

rdhar
Copy link
Member

@rdhar rdhar commented Apr 3, 2024

  • Add tofu example as a drop-in replacement for terraform.
  • Add tofu example via tenv, courtesy of tofuutils/tenv.
  • Bump v10 release SHAs.

Resolves #140, raised by @kvendingoldo.

@rdhar rdhar changed the title ci: add more workflow examples with tenv and tofu ci: add workflow examples with tenv and tofu Apr 3, 2024
@github-actions github-actions bot added the tf:plan Pull requests that plan TF code label Apr 3, 2024
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
rdhar added 10 commits April 9, 2024 12:05
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
Signed-off-by: Rishav Dhar <[email protected]>
Copy link

github-actions bot commented Apr 9, 2024

{"tf":"plan","chdir":"11_fail_data_source_error"}

Error: Read local file data source error
TF Tests by @rdhar via pull_request at 2024-04-09T17:02:19Z.
Error: Read local file data source error

with data.local_file.path,
on main.tf line 1, in data "local_file" "path":
 1: data "local_file" "path" {

The file at given path cannot be read.

+Original Error: open /error: no such file or directory

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"plan","chdir":"11_fail_data_source_error"}

Error: Read local file data source error
TF Tests by @rdhar via pull_request at 2024-04-09T17:02:19Z.
Error: Read local file data source error

with data.local_file.path,
on main.tf line 1, in data "local_file" "path":
 1: data "local_file" "path" {

The file at given path cannot be read.

+Original Error: open /error: no such file or directory

@rdhar rdhar merged commit dc00f4c into main Apr 9, 2024
12 checks passed
@rdhar rdhar deleted the tenv-examples branch April 9, 2024 17:06
@github-actions github-actions bot added the tf:apply Pull requests that apply TF code label Apr 9, 2024
Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"10_fail_invalid_resource_type"}

Error: Invalid resource type
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Error: Invalid resource type

on main.tf line 1, in resource "random_pets" "name":
 1: resource "random_pets" "name" {

The provider hashicorp/random does not support resource type "random_pets".
Did you mean "random_pet"?

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"52_pass_format_diff"}

Check format diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -1,3 +1,3 @@
resource "random_pet" "name" {
-  count =1
+  count = 1
}
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"10_fail_invalid_resource_type"}

Error: Invalid resource type
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Error: Invalid resource type

on main.tf line 1, in resource "random_pets" "name":
 1: resource "random_pets" "name" {

The provider hashicorp/random does not support resource type "random_pets".
Did you mean "random_pet"?

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"50_pass_one"}

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"50_pass_one"}

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"52_pass_format_diff"}

Check format diff.
main.tf
--- old/main.tf
+++ new/main.tf
@@ -1,3 +1,3 @@
resource "random_pet" "name" {
-  count =1
+  count = 1
}
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"51_pass_character_limit"}

Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.

Copy link

github-actions bot commented Apr 9, 2024

{"tf":"apply","chdir":"51_pass_character_limit"}

Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.
TF Tests by @rdhar via pull_request at 2024-04-09T17:06:39Z.
Apply complete! Resources: 10000 added, 0 changed, 0 destroyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tf:apply Pull requests that apply TF code tf:plan Pull requests that plan TF code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request: Support Compatibility with OpenTofu + tenv
1 participant