Skip to content

chore(main): release 3.15.0 #107

chore(main): release 3.15.0

chore(main): release 3.15.0 #107

Workflow file for this run

name: "TF GH Action"
on:
- pull_request
env:
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/.terraform.d/plugin-cache
jobs:
fmt:
name: "fmt"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform
uses: hashicorp/[email protected]
with:
terraform_version: 0.15.x
- name: Terraform fmt
run: terraform fmt -recursive -write=false -check -diff .
continue-on-error: true
validate:
name: "validate"
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version: [1.3.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Terraform ${{ matrix.terraform_version }}
uses: hashicorp/[email protected]
with:
terraform_version: ${{ matrix.terraform_version }}
- name: Terraform Validate Root
run: cd "${GITHUB_WORKSPACE}" && terraform init -backend=false && AWS_REGION=us-east-1 terraform validate -no-color
- name: Terraform AWS Validate Modules
run: for module in modules/aws/; do cd "${GITHUB_WORKSPACE}/${module}" && terraform init -backend=false && AWS_REGION=us-east-1 terraform validate -no-color ; done
- name: Terraform GCP Validate Modules
run: for module in modules/gcp/; do cd "${GITHUB_WORKSPACE}/${module}" && terraform init -backend=false && CLOUDSDK_COMPUTE_REGION=us-central1 terraform validate -no-color ; done
- name: Terraform Azure Validate Modules
run: for module in modules/azure/; do cd "${GITHUB_WORKSPACE}/${module}" && terraform init -backend=false && terraform validate -no-color ; done
- name: Terraform Validate Examples
run: for example in examples/*/; do cd "${GITHUB_WORKSPACE}/${example}" && terraform init -backend=false && AWS_REGION=us-east-1 terraform validate -no-color ; done