openpencil/.github/workflows/ci.yml
Danila Poyarkov 80a3cd8bd3
ci: update GitHub Actions to Node 24 (#460)
* ci: update GitHub Actions to Node 24

* ci: skip privileged previews for forks

* ci: isolate preview deployment secrets
2026-08-01 19:50:08 +03:00

62 lines
1.4 KiB
YAML

name: CI
on:
pull_request:
branches: [master]
paths-ignore:
- 'packages/docs/**'
- 'openspec/**'
- '*.md'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-bun
with:
lfs: 'true'
- name: Format check
run: bun run format:check
- name: Lint, typecheck, architecture, package, and tooling checks
run: bun run check
- name: Build Storybook
run: bun run build-storybook
unit-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
group: [app, dom, editor, fig, render, scene, vue]
name: Unit tests (${{ matrix.group }})
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-bun
with:
lfs: 'true'
- name: Build packages
run: bun run build:packages
- name: Run quick unit test shard
shell: bash
run: |
mapfile -t test_files < <(bun tools/unit-tests/src/list.ts "${{ matrix.group }}")
if [ "${#test_files[@]}" -eq 0 ]; then
echo "No tests found for shard ${{ matrix.group }}"
exit 0
fi
bun test "${test_files[@]}"
env:
BUN_HEAVY_TESTS: 'false'