Skip to content

IaC: Add Storage Container named 'docs' to all templates #10

IaC: Add Storage Container named 'docs' to all templates

IaC: Add Storage Container named 'docs' to all templates #10

name: Validate IaC - Terraform
on:
push:
branches: [ main ]
paths:
- 'IaC/Terraform/**'
pull_request:
branches: [ main ]
paths:
- 'IaC/Terraform/**'
workflow_dispatch:
permissions:
contents: read
jobs:
terraform-v1:
name: 'Validate Terraform - v1'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Validate
run: |
terraform init
terraform validate
working-directory: IaC/Terraform/v1
terraform-v2:
name: 'Validate Terraform - v2'
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Validate
run: |
terraform init
terraform validate
working-directory: IaC/Terraform/v2