Skip to content

Launch-quality output: snappier pacing, story-driven director, vocal-free music #27

Launch-quality output: snappier pacing, story-driven director, vocal-free music

Launch-quality output: snappier pacing, story-driven director, vocal-free music #27

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
typecheck-and-unit:
runs-on: ubuntu-latest
strategy:
matrix:
# exercise the advertised engines floor (>=20) alongside current LTS, so
# a Node-20-incompatible API can't slip in against the stated support
node-version: [20, 22]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run typecheck
# whole unit suite (no explicit file list, so new test files aren't
# silently skipped); the e2e files run in the browser-e2e job below,
# which has chromium + ffmpeg installed.
- run: npx vitest run --exclude '**/*.e2e.test.ts'
- run: npm audit --audit-level=moderate
browser-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: sudo apt-get update && sudo apt-get install -y ffmpeg
- run: npm test -- --run test/record.e2e.test.ts test/generate.e2e.test.ts