Skip to content

Commit 26b0434

Browse files
chore: move the config schema check from pre-commit to ci-only check
1 parent 21bce48 commit 26b0434

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1919
with:
2020
extra_args: --all-files
21+
- name: Check config schema is up to date
22+
run: cargo run --bin generate_config_schema && git diff --exit-code schemas/codspeed.schema.json
2123

2224
tests:
2325
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ repos:
2525
- id: clang-format
2626
files: ^crates/memtrack/src/ebpf/c/.*\.(c|h|bpf\.c)$
2727
args: [--style=file, -i]
28-
- repo: local
29-
hooks:
30-
- id: check-config-schema
31-
name: check config schema is up to date
32-
entry: bash -c 'cargo run --bin generate_config_schema && git diff --exit-code schemas/codspeed.schema.json'
33-
language: system

0 commit comments

Comments
 (0)