-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
32 lines (31 loc) · 1.09 KB
/
lefthook.yml
File metadata and controls
32 lines (31 loc) · 1.09 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
pre-commit:
parallel: true
commands:
pint:
glob: "*.php"
run: vendor/bin/pint {staged_files}
stage_fixed: true
phpstan:
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
docs-sync:
glob: "{specs/openapi.json,scripts/tag-descriptions.mjs,scripts/sync-docs.mjs}"
run: node scripts/sync-docs.mjs && git add README.md AGENTS.md
stage_fixed: true
pre-push:
parallel: false
commands:
pint:
run: vendor/bin/pint --test
priority: 1
phpstan:
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
priority: 2
codegen-drift:
run: node scripts/generate.mjs && git diff --exit-code -- specs/openapi.json src/Generated src/Roxy.php src/Version.php tests/Generated || { echo 'codegen drift: commit the regenerated files'; exit 1; }
priority: 3
docs-drift:
run: node scripts/sync-docs.mjs && git diff --exit-code -- README.md AGENTS.md || { echo 'docs drift: commit the regenerated README.md/AGENTS.md'; exit 1; }
priority: 4
test:
run: vendor/bin/pest
priority: 5