From d6c32c3cd60e76e4f6d308e49358dbcd99e00170 Mon Sep 17 00:00:00 2001 From: Sean Broestl Date: Wed, 14 Aug 2024 12:44:04 -0400 Subject: [PATCH] Put setup, test steps in wrong order --- .github/workflows/terraform-tests.yml | 8 ++++---- .pre-commit-config.yaml | 2 +- tests/production-record/main.tf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/terraform-tests.yml b/.github/workflows/terraform-tests.yml index 8703768..254f20c 100644 --- a/.github/workflows/terraform-tests.yml +++ b/.github/workflows/terraform-tests.yml @@ -13,14 +13,14 @@ jobs: image: ghcr.io/brownuniversity/terraform-infoblox-record-a:latest steps: - uses: actions/checkout@v4 - - name: Run terraform test - run: | - terraform init - terraform test - name: Setup Terraform uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.9.2 + - name: Run terraform test + run: | + terraform init + terraform test env: INFOBLOX_HOST: ${{ secrets.INFOBLOX_JHUB_HOST }} INFOBLOX_USERNAME: ${{ secrets.INFOBLOX_JHUB_USER }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a699936..923305a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.81.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases + rev: v1.92.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases hooks: - id: terraform_fmt - id: terraform_docs diff --git a/tests/production-record/main.tf b/tests/production-record/main.tf index 55df3d4..1d5f4bf 100644 --- a/tests/production-record/main.tf +++ b/tests/production-record/main.tf @@ -1,5 +1,5 @@ terraform { - required_version = "1.9.0" + required_version = ">= 1.9.0" required_providers { random = { source = "hashicorp/random"