Skip to content

Commit 4a89a1c

Browse files
committed
Add type check CI step
1 parent c802283 commit 4a89a1c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Test & Check Format
1+
name: Run Checks
22

33
on:
44
# Trigger the workflow every time a push is made to 'master'
@@ -19,5 +19,7 @@ jobs:
1919
uses: withastro/action@v2
2020
- name: Test
2121
run: bun test
22+
- name: Type Check
23+
run: bun check
2224
- name: Format Check
2325
run: bun format:check

bun.lockb

18.4 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"build": "astro build",
99
"preview": "astro preview",
1010
"astro": "astro",
11+
"check": "astro check",
1112
"format": "prettier --write \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\"",
1213
"format:check": "prettier --check \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\""
1314
},
1415
"devDependencies": {
16+
"@astrojs/check": "^0.8.3",
1517
"@tailwindcss/aspect-ratio": "^0.4.2",
1618
"@tailwindcss/forms": "^0.5.7",
1719
"@tailwindcss/typography": "^0.5.13",

0 commit comments

Comments
 (0)