Repository navigation
Expand file tree
/
Copy pathlefthook.yml
More file actions
60 lines (56 loc) · 1.4 KB
/
Copy pathlefthook.yml
File metadata and controls
60 lines (56 loc) · 1.4 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pre-push:
parallel: true
commands:
style-lint:
glob: '*.{css,scss}'
run: pnpm stylelint {staged_files} --aei --fix --quiet
php-lint:
glob: '*.php'
run: pnpm lint:php
php-test:
glob: '*php'
run: composer test {staged_files}
lint:
glob: '*.{js,ts,jsx,tsx}'
# Lint only staged files (like the other pre-push hooks). Running against
# the whole `frontend` tree fails on pre-existing violations in untouched
# files, which is why this gate was previously disabled.
run: pnpm eslint {staged_files}
pretty:
glob: '*.{js,ts,jsx,tsx}'
run: pnpm pretty:fix
ts-check:
glob: '*.{ts,tsx}'
run: pnpm tsc
test:
glob: '*.test.{js,ts,jsx,tsx}'
follow: true
skip_empty: true
run: pnpm vitest run {staged_files} -c ./vite.config.ts
sort-package-json:
glob: 'package.json'
run: pnpm sort-package-json
commit-msg:
commands:
commit-lint:
run: pnpm commitlint --edit {1}
github-actions:
parallel: true
commands:
lint:
run: pnpm eslint frontend
lint-css:
run: pnpm lint:css
lint-php:
run: composer lint
php-compatibility-check:
run: composer compat
prettier:
run: pnpm pretty:fix
test-js:
run: pnpm test
ts-check:
run: pnpm ts-check
# require db conn
# test-php:
# run: composer test:unit