From 1f0eb4b05109851815df076984c7041963f4bebe Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Thu, 22 Aug 2024 12:27:58 +0200 Subject: [PATCH] ci(formatting): prettier check --- .github/workflows/prettier.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 000000000..cadae0a72 --- /dev/null +++ b/.github/workflows/prettier.yml @@ -0,0 +1,24 @@ +name: Prettier Check + +on: + pull_request: + branches: [main, v3] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Cache npm + uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Prettier Check + run: npx prettier --check .