From eeff4ac5c98dab34c463b3b965b04948ae93a3a5 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Fri, 20 Sep 2024 16:48:04 +0200 Subject: [PATCH] actions: run yarn prettier to check web app formatting --- .github/workflows/yarnprettier.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/yarnprettier.yml diff --git a/.github/workflows/yarnprettier.yml b/.github/workflows/yarnprettier.yml new file mode 100644 index 000000000..1727eea3c --- /dev/null +++ b/.github/workflows/yarnprettier.yml @@ -0,0 +1,22 @@ +name: Yarn Prettier + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js and yarn + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "yarn" + cache-dependency-path: "webapp/yarn.lock" + + - name: Install WebApp dependencies + run: yarn --cwd webapp install --frozen-lockfile + + - name: Check Formatting + run: yarn --cwd webapp prettier --check src/