-
Notifications
You must be signed in to change notification settings - Fork 0
/
lefthook.yaml
39 lines (37 loc) · 902 Bytes
/
lefthook.yaml
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
37
38
39
pre-commit:
parallel: true
commands:
lint-typescript-cli:
root: core
run: yarn lint
compile-typescript-cli:
root: core
run: yarn compile
test-typescript-cli:
root: core
run: yarn test
lint-typescript-backend:
root: service
run: yarn lint
compile-typescript-backend:
root: service
run: yarn compile
test-typescript-backend:
root: service
run: yarn test
format-backend:
root: service
run: yarn format:prettier
pre-push:
parallel: true
commands:
run-e2e-tests:
run: lefthook run e2e-tests
# The root property add an implicit filter to lefthook, files outside the root folder
# will not trigger the hook. For this reason the command must be split and can not be included
# in the pre-push hook.
e2e-tests:
commands:
run-test:
root: core
run: yarn test:e2e