149441bcb5
Add format-check workflow that runs prettier --check across all packages on push/PR to main/develop branches. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
name: Format Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
paths:
|
|
- '**.ts'
|
|
- '**.tsx'
|
|
- '**.js'
|
|
- '**.jsx'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package.json'
|
|
- 'packages/*/package.json'
|
|
- 'shared/*/package.json'
|
|
- '.prettierrc'
|
|
- '.prettierrc.*'
|
|
- '.prettierignore'
|
|
- '.github/workflows/format-check.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.ts'
|
|
- '**.tsx'
|
|
- '**.js'
|
|
- '**.jsx'
|
|
- 'pnpm-lock.yaml'
|
|
- 'package.json'
|
|
- 'packages/*/package.json'
|
|
- 'shared/*/package.json'
|
|
- '.prettierrc'
|
|
- '.prettierrc.*'
|
|
- '.prettierignore'
|
|
- '.github/workflows/format-check.yml'
|
|
|
|
defaults:
|
|
run:
|
|
shell: 'bash'
|
|
|
|
jobs:
|
|
format-check:
|
|
name: Prettier Format Check
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '18'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run format check
|
|
run: pnpm run format:check
|