Skip to content

fix(fiber): avoid retaining stale portal state in setEvents #2789

fix(fiber): avoid retaining stale portal state in setEvents

fix(fiber): avoid retaining stale portal state in setEvents #2789

Workflow file for this run

name: Test
on:
push:
branches:
- 'master'
pull_request: {}
jobs:
build:
name: Build, lint, and test (React ${{ matrix.react-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
react-version:
- 19.0.0
- latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Use Node 20
uses: actions/setup-node@v5
with:
node-version: 20
- name: Cache node_modules and Yarn cache
uses: actions/cache@v5
with:
path: |
**/node_modules
.yarn/cache
key: >
${{ runner.os }}-node20-react-${{ matrix.react-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node20-react-${{ matrix.react-version }}-
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
with:
install-command: yarn --immutable --silent
- name: Override React version (${{ matrix.react-version }})
run: |
yarn add @types/react@${{ matrix.react-version }} react@${{ matrix.react-version }} @types/react-dom@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} --dev -W
- name: Check types
run: yarn run typecheck
- name: Check lint
run: yarn run eslint
- name: Build
run: yarn run build
- name: Rsbuild (strict)
run: yarn add @rsbuild/core -D -W && yarn rsbuild build --root ./packages/fiber
- name: Jest run
run: yarn run dev && yarn run test
- name: Report Fiber size
run: yarn run analyze-fiber
- name: Report Test Renderer size
run: yarn run analyze-test
- name: Check formatting
run: yarn run format