From 34f73a3d4c24e3902f5c321874e325eb19e20c7c Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Tue, 2 Jun 2026 14:20:43 +0900 Subject: [PATCH] ci: verify schema.json is up to date in CI The committed schema.json and the inline AJV schema in validate.ts were managed independently with no CI check to detect drift. This adds a step that regenerates schema.json and applies Biome formatting, then fails if the result differs from what is committed. --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4bc5462..913e1a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,6 +41,12 @@ jobs: - name: Verify dist is up to date run: git diff --exit-code -- dist + - name: Verify schema.json is up to date + run: | + bun run generate-json-schema + bun run format + git diff --exit-code -- schema.json + - name: Measure build size uses: kitsuyui/gh-build-size@v0.1.2 with: