v2: Add left-hook pre-push (#1003)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
This commit is contained in:
parent
78bae7426d
commit
40174d2dff
1 changed files with 165 additions and 0 deletions
23
lefthook-local.example.yml
Normal file
23
lefthook-local.example.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Optional local lefthook configuration
|
||||
# To enable this:
|
||||
# cp lefthook-local.example.yml lefthook-local.yml
|
||||
|
||||
pre-commit:
|
||||
parallel: true
|
||||
jobs:
|
||||
- name: 'Typecheck'
|
||||
run: pnpm typecheck:all
|
||||
|
||||
- name: 'Lint Fix & Format'
|
||||
run: pnpm lint:fix:all
|
||||
stage_fixed: true
|
||||
|
||||
post-checkout:
|
||||
jobs:
|
||||
- name: 'Install Dependencies'
|
||||
run: pnpm install
|
||||
|
||||
post-merge:
|
||||
jobs:
|
||||
- name: 'Install Dependencies'
|
||||
run: pnpm install
|
||||
Loading…
Reference in a new issue