Skip to content

feat(react-doctor): 4 new React 18→19 migration rules #403

feat(react-doctor): 4 new React 18→19 migration rules

feat(react-doctor): 4 new React 18→19 migration rules #403

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm typecheck
- run: pnpm lint
- run: pnpm format:check
- name: Smoke test built CLI
run: |
cd packages/react-doctor
pnpm build
BUILT_VERSION=$(node bin/react-doctor.js --version)
echo "Built CLI reports version: $BUILT_VERSION"
if [ -z "$BUILT_VERSION" ] || [ "$BUILT_VERSION" = "0.0.0" ]; then
echo "Built CLI version is missing or 0.0.0; build env did not inject VERSION"
exit 1
fi