From e6728ddbd959dd974dfb7dac0814354b0f2e1574 Mon Sep 17 00:00:00 2001 From: Callum Date: Sat, 2 Nov 2024 15:58:52 +0000 Subject: [PATCH] Add prettier check as a github workflow --- .github/workflows/prettier.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/prettier.yml diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml new file mode 100644 index 0000000..80990fb --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,26 @@ +name: Prettier Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Check formatting + run: npx prettier --check .