diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab65b4f..822f3c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,6 +25,8 @@ jobs: run: bun install - name: setup data fixture run: mkdir -p site/src/generated && cp site/src/lib/server/__fixtures__/data.json site/src/generated/data.json + - name: sync astro content types + run: bun run astrosync - name: run type check run: bun run types - name: run schema scheck diff --git a/package.json b/package.json index 670dd59..03ddf92 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "test": "TZ=America/New_York vitest", "types": "tsc --noEmit", "gen-schemas": "bun run scripts/zod-json-schema.ts", - "schemas": "bun run ajv validate -s site/src/schemas/enabler -d \"site/src/content/enabler/*.json\"" + "schemas": "bun run ajv validate -s site/src/schemas/enabler -d \"site/src/content/enabler/*.json\"", + "astrosync": "cd site && bun run astro sync" }, "devDependencies": { "@types/bun": "latest"