-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathlefthook.yaml
More file actions
28 lines (26 loc) · 912 Bytes
/
lefthook.yaml
File metadata and controls
28 lines (26 loc) · 912 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
# lefthook.yaml — Git hooks managed by Lefthook (https://github.com/evilmartians/lefthook)
#
# Lefthook runs commands automatically at git lifecycle points (pre-commit,
# pre-push, etc). Install hooks into your local repo with:
#
# lefthook install
#
# After that, the hooks below fire automatically. To run them manually:
#
# lefthook run pre-commit
# lefthook run pre-push
# Runs when you `git commit` — only if the staged files match the glob.
pre-commit:
parallel: true
commands:
bats-k3d-dev:
# Only fire when the script or its tests are staged
glob: "{docs/reference/scripts/developer/k3d-dev.sh,tests/bats/**/*.bats}"
run: bats --jobs 4 --recursive tests/bats/
# Runs when you `git push` — only if any .sh or .bats files changed.
pre-push:
parallel: true
commands:
bats-k3d-dev:
glob: "**/*.{sh,bats}"
run: bats --jobs 4 --recursive tests/bats/