Skip to content

node-local-dns

node-local-dns #10

Workflow file for this run

name: Terraform validate
permissions:
contents: read
on:
workflow_dispatch:
pull_request:
branches:
- main
- master
jobs:
versionExtract:
name: Extract min/max Terraform versions
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Extract Terraform min/max versions
id: minMax
uses: clowdhaus/terraform-min-max@main
with:
directory: .
outputs:
minVersion: ${{ steps.minMax.outputs.minVersion }}
maxVersion: ${{ steps.minMax.outputs.maxVersion }}
terraform-validate:
runs-on: ubuntu-22.04
needs: versionExtract
strategy:
matrix:
tf_ver:
- ${{ needs.versionExtract.outputs.minVersion }}
- ${{ needs.versionExtract.outputs.maxVersion }}
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.tf_ver }}
- name: Terraform Init
id: init
run: terraform init
- name: Terraform Validate
id: validate
run: terraform validate