From 558cfd875babdb63759c9a432eefb76edf59baef Mon Sep 17 00:00:00 2001 From: versecafe <147033096+versecafe@users.noreply.github.com> Date: Sun, 14 Jul 2024 21:57:21 -0400 Subject: [PATCH] format check CI + format --- .github/workflows/tests.yml | 4 +++- package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e3b843..9d83965 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Build & Test +name: Build & Test & Check Format on: # Trigger the workflow every time a push is made to 'master' @@ -19,3 +19,5 @@ jobs: uses: withastro/action@v2 - name: Test run: bun test + - name: Format Check + run: bun format:check diff --git a/package.json b/package.json index 81ad29c..a2e10da 100644 --- a/package.json +++ b/package.json @@ -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",