fix(signals): move-and-clear _optimisticNodes on transition merge #6
Workflow file for this run
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: Size | |
| # Tracks tree-shaken scenario costs per PR (#2883). scripts/size/ is a | |
| # standalone npm package OUTSIDE the pnpm workspace on purpose: adding its | |
| # tooling to the workspace graph re-keys pnpm peer instances (vitest, | |
| # @codspeed/vitest-plugin), which relocates the benchmark harness and shows | |
| # up as phantom CodSpeed regressions. The limits in size/.size-limit.js are | |
| # the strict tree-shaking gate; the retained-module-graph assertions in | |
| # packages/solid-signals/tests/treeshake.test.ts stay the which-module | |
| # diagnostic underneath. | |
| on: | |
| pull_request: | |
| branches: [main, next] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| # The hard gate: self-contained on the PR head, fails when any scenario | |
| # exceeds its limit. Never depends on the base branch. | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build | |
| - run: npm ci --no-audit --no-fund | |
| working-directory: scripts/size | |
| - run: npm run size | |
| working-directory: scripts/size | |
| # Best-effort base-vs-head delta comment. Requires the base branch to also | |
| # carry scripts/size/, so it is informational and never blocks: continue-on-error | |
| # keeps bootstrap PRs (and any action hiccup) green. | |
| compare: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: ".nvmrc" | |
| cache: pnpm | |
| - uses: andresz1/size-limit-action@v1 | |
| continue-on-error: true | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| package_manager: npm | |
| directory: scripts/size | |
| build_script: build |