Skip to content

Commit

Permalink
ci: sync astro content types
Browse files Browse the repository at this point in the history
type check was failing on astro:content import which is generated it seems
  • Loading branch information
sterlingwes committed Feb 1, 2024
1 parent 6181348 commit fbd9e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fbd9e47

Please sign in to comment.