From 4adc549c67e8b1fc1a8a17753b0c95ebf0c5b5d2 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Sat, 10 Aug 2024 11:01:07 +0900 Subject: [PATCH] Add .tflint.hcl to test case directories and fix the process of getting arch (#94) * Test: Add .tflint.hcl * arm64 adds to architecture conversion process * Fix arch name --- script.sh | 3 ++- tests/modules/.tflint.hcl | 4 ++++ tests/reviewdog-reporters/.tflint.hcl | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/modules/.tflint.hcl create mode 100644 tests/reviewdog-reporters/.tflint.hcl diff --git a/script.sh b/script.sh index f551a08..bd266f6 100755 --- a/script.sh +++ b/script.sh @@ -19,7 +19,8 @@ echo '::group::Preparing' unameArch="$(uname -m)" case "${unameArch}" in x86*) arch=amd64;; - aarch64*) arch=arm;; + aarch64*) arch=arm64;; + arm64*) arch=arm64;; *) echo "Unsupported architecture: ${unameArch}" && exit 1 esac diff --git a/tests/modules/.tflint.hcl b/tests/modules/.tflint.hcl new file mode 100644 index 0000000..427121c --- /dev/null +++ b/tests/modules/.tflint.hcl @@ -0,0 +1,4 @@ +plugin "terraform" { + enabled = true + preset = "recommended" +} diff --git a/tests/reviewdog-reporters/.tflint.hcl b/tests/reviewdog-reporters/.tflint.hcl new file mode 100644 index 0000000..427121c --- /dev/null +++ b/tests/reviewdog-reporters/.tflint.hcl @@ -0,0 +1,4 @@ +plugin "terraform" { + enabled = true + preset = "recommended" +}