From 1b97a2d48878a11ffef8df293488a0e3bf0ffa25 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sun, 1 Jun 2025 11:28:15 -0700 Subject: [PATCH] add formatting check action --- .github/workflows/check-format.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/check-format.yml diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml new file mode 100644 index 000000000..d3f34635c --- /dev/null +++ b/.github/workflows/check-format.yml @@ -0,0 +1,41 @@ +name: Format Check (Client & Server) +on: + pull_request: + workflow_dispatch: + +jobs: + format-client: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install client dependencies + working-directory: client + run: npm ci + + - name: Check client formatting + working-directory: client + run: npm run format-check + + format-server: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install server dependencies + working-directory: server + run: npm ci + + - name: Check server formatting + working-directory: server + run: npm run format-check