Skip to content

Bump hashicorp/setup-terraform from 2 to 3 (#12) #6

Bump hashicorp/setup-terraform from 2 to 3 (#12)

Bump hashicorp/setup-terraform from 2 to 3 (#12) #6

Workflow file for this run

name: 'Proxmox K8s Terraform CI'
on:
push:
branches: [ "main" ]
pull_request:
permissions:
contents: read
jobs:
terraform:
name: 'Terraform'
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4
# Install the latest version of Terraform CLI and configure the Terraform CLI
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
# Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform -chdir=terraform init
# Checks that all Terraform configuration files adhere to a canonical format
- name: Terraform Format
run: terraform -chdir=terraform fmt -check
# Checks that all Terraform configuration is valid
- name: Terraform Validate
run: terraform -chdir=terraform validate