mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
88a5c3cb49
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
name: React Doctor
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
issues: write
|
|
statuses: write
|
|
|
|
concurrency:
|
|
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
|
|
jobs:
|
|
react-doctor:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- uses: pnpm/action-setup@v5
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 22.18.0
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile --prefer-offline
|
|
|
|
# Build the workspace CLI and point the local action at it (version:
|
|
# ./packages/react-doctor) so this job dogfoods the PR's own action AND
|
|
# CLI, not the published npm release.
|
|
- run: pnpm --filter react-doctor... build
|
|
|
|
- uses: ./
|
|
with:
|
|
blocking: none
|
|
node-version: 22.18.0
|
|
version: ./packages/react-doctor
|
|
# This repo dogfoods its own action; opt out of the missing-baseline
|
|
# warning so self-scans don't nag about their own CI setup.
|
|
silence-missing-baseline-warning: true
|