-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.45 KB
/
Copy pathci.yml
File metadata and controls
44 lines (40 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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