Skip to content

Commit

Permalink
format check CI + format
Browse files Browse the repository at this point in the history
  • Loading branch information
versecafe authored and ADKaster committed Jul 15, 2024
1 parent 44cf78e commit 558cfd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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
name: Build & Test & Check Format

on:
# Trigger the workflow every time a push is made to 'master'
Expand All @@ -19,3 +19,5 @@ jobs:
uses: withastro/action@v2
- name: Test
run: bun test
- name: Format Check
run: bun format:check
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "astro build && bun run ./generate-middleware.ts",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write \"**/*.{astro,ts,tsx,md,mdx,js,cjs,mjs,jsx}\""
"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": {
"@tailwindcss/aspect-ratio": "^0.4.2",
Expand Down

0 comments on commit 558cfd8

Please sign in to comment.