Doc Contributions and Docker Workflows #163
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
# 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 | |