mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-03 20:37:30 +00:00
* ci: keep the bun cache warm and skip binary downloads in preflight * test(ci): pin the single cache writer and preflight's skipped downloads * test(ci): keep the cache-writer scan out of the test body
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Preflight
|
|
description: |
|
|
Cheap lint + format gate that runs before expensive CI jobs (regression
|
|
shards, perf shards, parity renders, Windows renders, catalog previews).
|
|
Single source of truth for the gate's bun/node/cache/lint/format steps —
|
|
tweak here and every preflight job picks it up.
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
|
|
|
|
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
|
|
with:
|
|
path: ~/.bun/install/cache
|
|
key: bun-${{ runner.os }}-${{ hashFiles('bun.lock') }}
|
|
restore-keys: |
|
|
bun-${{ runner.os }}-
|
|
|
|
# Lint and format need neither binary; skip their install-time downloads.
|
|
- uses: ./.github/actions/prepare-ffmpeg-bin
|
|
|
|
- shell: bash
|
|
env:
|
|
PUPPETEER_SKIP_DOWNLOAD: "true"
|
|
run: bun install --frozen-lockfile
|
|
|
|
- shell: bash
|
|
run: bun run lint
|
|
|
|
- shell: bash
|
|
run: bun run format:check
|