From 558b3b884cbd2d57df60d9db14bc147bd37d11fd Mon Sep 17 00:00:00 2001 From: Ruben Aleman Date: Thu, 14 Mar 2024 09:36:49 +0100 Subject: [PATCH] feat: Add terraform test github action --- .github/workflows/terraform-test.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/terraform-test.yaml diff --git a/.github/workflows/terraform-test.yaml b/.github/workflows/terraform-test.yaml new file mode 100644 index 0000000..7a2614b --- /dev/null +++ b/.github/workflows/terraform-test.yaml @@ -0,0 +1,22 @@ +name: terraform-test +on: + push: + branches: [ "main"] + pull_request: + branches: [ "main" ] + + workflow_dispatch: + +permissions: read-all + +jobs: + terraform_test: + runs-on: ubuntu-latest + container: hashicorp/terraform:1.7.5 + permissions: + contents: read + actions: read + steps: + - uses: actions/checkout@v4 + - run: terraform init + - run: terraform test