Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 2c5f1bd

Browse files
author
Pascal Bourdier
committed
add a step for fmt in CI
avoid to forget fmt
1 parent f8e60ff commit 2c5f1bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.circleci/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
---
12
version: 2
23
jobs:
4+
validate_terraform:
5+
docker:
6+
- image: hashicorp/terraform
7+
steps:
8+
- checkout
9+
- run:
10+
name: Validate Terraform Formatting
11+
command: "[ -z \"$(terraform fmt -write=false)\" ] || { terraform fmt -write=false -diff; exit 1; }"
12+
313
build:
414
machine: true
515
# Changing default working dir to the one used for the go path configuration

0 commit comments

Comments
 (0)