From 0451d74e9ce848d1bdb6373792875610d5846c08 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Sat, 29 Oct 2022 10:40:50 -0400 Subject: [PATCH] fix: Correct syntax --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 7 ++----- tests/0.12/{main.tf => versions.tf} | 7 +++++++ tests/0.13/{main.tf => versions.tf} | 2 +- 4 files changed, 12 insertions(+), 8 deletions(-) rename tests/0.12/{main.tf => versions.tf} (50%) rename tests/0.13/{main.tf => versions.tf} (87%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a58a87f..4a43073 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,13 +17,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: 16 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cba271d..7e8680a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,6 @@ on: branches: - main -env: - TERRAFORM_DOCS_VERSION: v0.16.0 - jobs: collectInputs: name: Collect workflow inputs @@ -19,7 +16,7 @@ jobs: directories: ${{ steps.dirs.outputs.directories }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get root directories id: dirs @@ -34,7 +31,7 @@ jobs: directory: ${{ fromJson(needs.collectInputs.outputs.directories) }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Terraform min/max versions id: minMax diff --git a/tests/0.12/main.tf b/tests/0.12/versions.tf similarity index 50% rename from tests/0.12/main.tf rename to tests/0.12/versions.tf index 8e01d34..7dd3ba0 100644 --- a/tests/0.12/main.tf +++ b/tests/0.12/versions.tf @@ -5,4 +5,11 @@ provider "aws" { terraform { required_version = "~> 0.12" + + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 4.27" + } + } } diff --git a/tests/0.13/main.tf b/tests/0.13/versions.tf similarity index 87% rename from tests/0.13/main.tf rename to tests/0.13/versions.tf index 4a207ec..245cdf8 100644 --- a/tests/0.13/main.tf +++ b/tests/0.13/versions.tf @@ -8,7 +8,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = "~> 3.9" + version = ">= 4.27" } } }