feat: Set Up Auto Fromatting #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatting check (run `pnpm format` locally if this fails) | |
on: pull_request | |
jobs: | |
format-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Set up Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "23" | |
- name: Install pnpm | |
run: | | |
npm install -g pnpm | |
pnpm install | |
- name: Run formatting script | |
run: pnpm format | |
- name: Fail if changes | |
run: git diff --exit-code |