diff --git a/.github/workflows/terraform_checks.yml b/.github/workflows/terraform_checks.yml new file mode 100644 index 0000000..1eff684 --- /dev/null +++ b/.github/workflows/terraform_checks.yml @@ -0,0 +1,16 @@ +name: Terraform checks and linting + +on: [push] + +jobs: + terraform-lint-format: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run Terraform Action from oak-terraform-actions + uses: oaknational/oak-terraform-actions/actions/terraform-checks@main + with: + terraform_base_dir: modules diff --git a/.terraform-version b/.terraform-version new file mode 100644 index 0000000..d615fd0 --- /dev/null +++ b/.terraform-version @@ -0,0 +1 @@ +1.9.4 diff --git a/.tflint.hcl b/.tflint.hcl new file mode 100644 index 0000000..7742dc4 --- /dev/null +++ b/.tflint.hcl @@ -0,0 +1,10 @@ +plugin "terraform" { + enabled = true + preset = "all" +} + +plugin "google" { + enabled = true + version = "0.30.0" + source = "github.com/terraform-linters/tflint-ruleset-google" +} \ No newline at end of file