chore: add new GHA workflow check for formatting #1
This file contains hidden or 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: Format Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Run format check | |
| run: make format | |
| - name: Check for changes | |
| run: | | |
| if git diff --exit-code; then | |
| echo "✓ All files are properly formatted" | |
| else | |
| echo "✗ Files have formatting issues" | |
| git diff | |
| exit 1 | |
| fi |