Merge pull request #1 from DJBerwick/add-third-subnet #4
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 | |
env: | |
TF_LOG: INFO | |
TF_INPUT: false | |
jobs: | |
terraform: | |
name: 'Terraform' | |
runs-on: ubuntu-latest | |
# Use the Bash shell regardless whether the GitHub Actions runner is | |
# ubuntu-latest, macos-latest, or windows-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
# Checkout the repository to the GitHub Actions runner | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Install the preferred version of Terraform CLI | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
# Run a terraform fmt for push | |
- name: Terraform Format | |
id: fmt | |
run: terraform fmt -check | |
# Run a terraform validate | |
# Run even if formatting fails | |
- name: Terraform Validate | |
id: validate | |
if: (success() || failure()) | |
run: terraform validate |