Skip to content

Commit e6178e4

Browse files
feat: add pre-commit check to sync schema with code
1 parent ade2c3a commit e6178e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ repos:
2020
args: [--all-targets]
2121
- id: clippy
2222
args: [--all-targets, --, -D, warnings]
23+
- repo: local
24+
hooks:
25+
- id: check-config-schema
26+
name: check config schema is up to date
27+
entry: bash -c 'cargo run --bin generate-config-schema && git diff --exit-code schemas/codspeed.schema.json'
28+
language: system

0 commit comments

Comments
 (0)