Skip to content

Merge branch 'master' of github.com:rabiloo/terraform-aws-ecr #22

Merge branch 'master' of github.com:rabiloo/terraform-aws-ecr

Merge branch 'master' of github.com:rabiloo/terraform-aws-ecr #22

name: Run validation
on:
- push
jobs:
validation:
name: Run terraform validate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
- name: Show Terraform version
run: terraform --version
- name: Cache plugin dir
uses: actions/cache@v3
with:
path: ~/.terraform
key: terraform-${{ hashFiles('versions.tf') }}
- name: Init Terraform
run: terraform init -upgrade
- name: Run Terraform validate
run: |
terraform fmt --check
terraform validate