This repository was archived by the owner on Jan 25, 2023. It is now read-only.
File tree 2 files changed +15
-10
lines changed
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,25 @@ workspace_root: &workspace_root /go/src/github.com/hashicorp/terraform-aws-consu
4
4
defaults : &defaults
5
5
working_directory : *workspace_root
6
6
docker :
7
- - image : 087285199408.dkr.ecr.us-east-1.amazonaws.com/circle-ci-test-image-base:go1.13
7
+ - image : 087285199408.dkr.ecr.us-east-1.amazonaws.com/circle-ci-test-image-base:tf13
8
8
9
9
version : 2
10
10
jobs :
11
- validate_terraform :
12
- docker :
13
- - image : hashicorp/terraform
14
- steps :
15
- - checkout
16
- - run :
17
- name : Validate Terraform Formatting
18
- command : ' [ -z "$(terraform fmt -write=false)" ] || { terraform fmt -write=false -diff; exit 1; }'
19
-
20
11
test :
21
12
<< : *defaults
22
13
steps :
23
14
- checkout
24
15
- run : echo 'export PATH=$HOME/terraform:$HOME/packer:$PATH' >> $BASH_ENV
25
16
- attach_workspace :
26
17
at : *workspace_root
18
+ - run :
19
+ # Fail the build if the pre-commit hooks don't pass. Note: if you run $ pre-commit install locally within this repo, these hooks will
20
+ # execute automatically every time before you commit, ensuring the build never fails at this step!
21
+ name : run pre-commit hooks
22
+ command : |
23
+ pip install pre-commit==1.21.0 cfgv==2.0.1
24
+ pre-commit install
25
+ pre-commit run --all-files
27
26
- run :
28
27
command : |
29
28
mkdir -p /tmp/logs
Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/gruntwork-io/pre-commit
3
+ rev : v0.1.10
4
+ hooks :
5
+ - id : terraform-fmt
6
+ - id : gofmt
You can’t perform that action at this time.
0 commit comments