Skip to content

Commit

Permalink
Add type check CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
samfry13 committed Aug 26, 2024
1 parent c33a6a7 commit a42e478
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Test & Check Format
name: Run Checks

on:
# Trigger the workflow every time a push is made to 'master'
Expand All @@ -19,5 +19,7 @@ jobs:
uses: withastro/action@v2
- name: Test
run: bun test
- name: Type Check
run: bun check
- name: Format Check
run: bun format:check
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"check": "astro check",
"format": "prettier --write \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\"",
"format:check": "prettier --check \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\""
},
"devDependencies": {
"@astrojs/check": "^0.8.3",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
Expand Down

0 comments on commit a42e478

Please sign in to comment.