-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
33 lines (33 loc) · 898 Bytes
/
.pre-commit-hooks.yaml
File metadata and controls
33 lines (33 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
- id: pdk-validate
name: check puppet code syntax & style
fail_fast: true
language: script
entry: run-pdk.sh validate
files: \.(erb|epp|pp|rb)$
stages:
- pre-commit
- id: pdk-test-unit
name: run puppet rspec unit tests
always_run: true
pass_filenames: false
language: script
entry: run-pdk.sh test unit
fail_fast: true
stages:
- pre-push
- id: pdk-puppet-strings-control-repo
name: check control-repo documentation is current
always_run: true
pass_filenames: false
language: script
entry: run-pdk.sh bundle exec puppet strings generate 'site*/**/*.pp' 'site*/**/*.rb'
stages:
- pre-push
- id: pdk-puppet-strings-module
name: check module documentation is current
always_run: true
pass_filenames: false
language: script
entry: run-pdk.sh bundle exec puppet strings generate 'manifests/**/*.pp' 'manifests/**/*.rb'
stages:
- pre-push