Skip to content

Commit

Permalink
Put setup, test steps in wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
broestls committed Aug 14, 2024
1 parent 4506728 commit d6c32c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/terraform-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/production-record/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = "1.9.0"
required_version = ">= 1.9.0"
required_providers {
random = {
source = "hashicorp/random"
Expand Down

0 comments on commit d6c32c3

Please sign in to comment.