feat: Add Support for EKS Pod Identity #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |