Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions actions/base-terraform/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Base terraform CI
description: Checkout repo, download terraform, and run tf checks
inputs:
tf_version:
description: Terraform version
required: false
default: 1.15.8
tf_is_workspace:
description: If true, run init and plan
required: false
default: 'false'
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v7
with:
submodules: recursive
- name: Download Terraform
run: "./scripts/download_terraform.sh ${{ inputs.tf_version }}"
shell: bash
- name: Init workspace
run: "~/tfbin/terraform init -upgrade -input=false"
shell: bash
if: inputs.tf_is_workspace == 'true'
- name: Check format
run: "~/tfbin/terraform fmt -write=false -diff=true -check"
shell: bash
- name: Check plan
run: "~/tfbin/terraform plan -detailed-exitcode -input=false"
shell: bash
if: inputs.tf_is_workspace == 'true'
Loading