chore(deps): update terraform terraform-aws-modules/sqs/aws to v4.2.1 #270
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: Pre-Commit | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
TERRAFORM_DOCS_VERSION: v0.19.0 | |
jobs: | |
collectInputs: | |
name: Collect workflow inputs | |
runs-on: ubuntu-latest | |
outputs: | |
directories: ${{ steps.dirs.outputs.directories }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get root directories | |
id: dirs | |
uses: clowdhaus/terraform-composite-actions/directories@v1.11.1 | |
preCommitMinVersions: | |
name: Min TF pre-commit | |
needs: collectInputs | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Terraform min/max versions | |
id: minMax | |
uses: clowdhaus/terraform-min-max@v1.3.1 | |
with: | |
directory: ${{ matrix.directory }} | |
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} | |
# Run only validate pre-commit check on min version supported | |
if: ${{ matrix.directory != '.' }} | |
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 | |
with: | |
terraform-version: ${{ steps.minMax.outputs.minVersion }} | |
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*' | |
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} | |
# Run only validate pre-commit check on min version supported | |
if: ${{ matrix.directory == '.' }} | |
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 | |
with: | |
terraform-version: ${{ steps.minMax.outputs.minVersion }} | |
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)' | |
preCommitMaxVersion: | |
name: Max TF pre-commit | |
runs-on: ubuntu-latest | |
needs: collectInputs | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name: Terraform min/max versions | |
id: minMax | |
uses: clowdhaus/terraform-min-max@v1.3.1 | |
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }} | |
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1 | |
with: | |
terraform-version: ${{ steps.minMax.outputs.maxVersion }} | |
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }} |