Skip to content

Commit 5aab29b

Browse files
feat: add pre-commit check to sync schema with code
1 parent 54c5f11 commit 5aab29b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.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)