Repository navigation
73 lines (61 loc) · 1.82 KB
/
Copy pathci.yml
File metadata and controls
73 lines (61 loc) · 1.82 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: CI
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
verify:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.11'
- run: bun install --frozen-lockfile
- name: Install Remotion dependencies
working-directory: website/remotion-bvm
run: npm ci
- run: bun run typecheck
- name: Typecheck Remotion
working-directory: website/remotion-bvm
run: npm exec tsc -- --noEmit -p tsconfig.json
- run: bun run build
- name: Unit tests
if: runner.os != 'Windows'
run: bun run test:unit
- name: Native Windows unit tests
if: runner.os == 'Windows'
run: >-
bun test
test/windows_shim_fixer.test.ts
test/bun_cmd_intercept.test.ts
test/install_integrity_contract.test.ts
test/release_contract.test.ts
website/test/install-function.test.ts
website/test/site-metadata.test.ts
website/test/sync-docs.test.ts
- run: bun run test:isolated
- name: E2E tests
if: runner.os != 'Windows'
run: bun run test:e2e
- name: Native Windows E2E tests
if: runner.os == 'Windows'
run: >-
bun test
test/e2e/commands.test.ts
test/e2e/install-ps1.test.ts
test/e2e/install.test.ts
test/e2e/maintenance.test.ts
test/e2e/npm_verify_safety.test.ts
- name: Coverage
if: runner.os == 'Linux'
run: bun run test:coverage
- name: Validate package contents
if: runner.os == 'Linux'
run: bun pm pack --dry-run