Skip to content

Doc Contributions and Docker Workflows #165

Doc Contributions and Docker Workflows

Doc Contributions and Docker Workflows #165

Workflow file for this run

# Copyright (c) CloudBees, Inc.
---
name: "Code Quality: Terraform"
on:
pull_request:
jobs:
terraform:
name: Terraform
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
fetch-depth: 1
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_wrapper: true
# Match this value with .docker/agent
terraform_version: 1.6.6
- name: Initialize Terraform
run: terraform init
- name: Format Terraform configuration
run: terraform fmt -diff -check -no-color -recursive
continue-on-error: true
- name: Validate Terraform configuration
run: terraform validate