From a27dbaf98e60bd69bcd19d6d3591967a5094dbde Mon Sep 17 00:00:00 2001 From: Recoup Agent Date: Tue, 17 Mar 2026 20:03:13 +0000 Subject: [PATCH] feat: add formatter GitHub Action to run on all PRs Adds a new `format.yml` workflow that runs `pnpm format:check` (Prettier) automatically on every pull request targeting `main` or `test`, ensuring all code changes follow standardized formatting before merge. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/format.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..d7709584 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,29 @@ +name: Format Check + +on: + pull_request: + branches: [main, test] + +jobs: + format: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Install dependencies + run: pnpm install + + - name: Check formatting + run: pnpm format:check