There was an error while loading. Please reload this page.
1 parent c3d64fc commit f854363Copy full SHA for f854363
1 file changed
lefthook.yml
@@ -21,7 +21,11 @@ pre-push:
21
phpstan:
22
run: vendor/bin/phpstan analyse --no-progress --memory-limit=512M
23
priority: 2
24
+ # Hermetic: regenerates from the committed spec, so this verifies the committed code still
25
+ # reproduces from it, with no network dependency. Refreshing the spec is the release job.
26
codegen-drift:
27
+ env:
28
+ ROXYAPI_SPEC_FILE: specs/openapi.json
29
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; }
30
priority: 3
31
docs-drift:
0 commit comments