fix: correcting CI and firing on push #1
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' | |
on: | |
push: | |
jobs: | |
quickstart: | |
name: 'Terraform' | |
runs-on: [focal] | |
steps: | |
# Checkout the repository to the GitHub Actions runner | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- uses: hashicorp/setup-terraform@v1 | |
- name: Terraform Version | |
run: terraform version | |
# Checks that all Terraform configuration files adhere to a canonical format | |
- name: Terraform Format | |
run: terraform fmt -recursive -check | |
- name: Terraform init | |
run: terraform init | |
- name: Terraform Validate | |
run: terraform validate |