-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (34 loc) · 966 Bytes
/
lefthook.yml
File metadata and controls
36 lines (34 loc) · 966 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
34
35
36
# Managing git hooks
pre-commit:
parallel: true
commands:
lint:
files: git diff --name-only development
glob: "*.{js,json}"
exclude: '__tests__/ui/grid/__snapshots__/*'
run: yarn run lint --fix {files}
rubocop:
files: git diff --name-only development
# exclude: "excluded_filename.rb"
tags: backend
run: bundle exec rubocop --fail-level error {files}
pre-push: # githook name
parallel: false
commands: # list of commands
# rubocop:
# tags: backend
# run: bundle exec rubocop --fail-level error
# rspec:
# tags: rspec backend
# run: bundle exec crystalball --fail-fast
# packages-audit: # command name
# run: yarn audit # command for execution
post-checkout:
piped: true # Exit early if preceding command fails
scripts:
01-check-packages:
tags: backend
02-db-migrate:
tags: backend
03-crystalball-update:
tags: rspec backend