This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
chore(deps): update hashicorp/setup-terraform action to v3 #12
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: Validate terraform | |
on: | |
push: | |
paths: | |
- '**/*.tf' | |
- '.github/workflows/validate-terraform.yml' | |
pull_request: | |
paths: | |
- '**/*.tf' | |
- '.github/workflows/validate-terraform.yml' | |
jobs: | |
validate-terraform: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
terraform-version: | |
- 0.13.5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: ${{ matrix.terraform-version }} | |
- name: Terraform init | |
run: terraform init | |
- name: Terraform format | |
run: terraform fmt -check | |
- name: Terraform validate | |
run: terraform validate |