- Scope hover hit-test to current page (was searching all pages including internal component page, causing ghost hover outlines) - Frames/sections without visible fills or strokes are click-through - Groups are always click-through (only children are hittable) - Clipping parents reject hits outside their bounds - Instances/components check children before falling back to fill check - Switch test fixtures from material3.fig (55MB) / nuxtui.fig (82MB) to gold-preview.fig (537KB) for fast dev runs, gate heavy fixtures behind BUN_HEAVY_TESTS env var (enabled in CI)
47 lines
901 B
YAML
47 lines
901 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- 'packages/docs/**'
|
|
- 'openspec/**'
|
|
- '*.md'
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Pull LFS files
|
|
run: git lfs pull
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ~/.bun/install/cache
|
|
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
|
|
restore-keys: bun-${{ runner.os }}-
|
|
|
|
- run: bun install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Typecheck
|
|
run: bunx tsgo --noEmit
|
|
|
|
- name: Unit tests
|
|
run: bun test tests/engine/
|
|
env:
|
|
BUN_HEAVY_TESTS: '1'
|
|
|
|
- name: Copy-paste detection
|
|
run: bun run test:dupes
|