-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (53 loc) · 1.81 KB
/
Copy pathci.yml
File metadata and controls
68 lines (53 loc) · 1.81 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
name: CI
on:
push:
branches: [main, master]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18, 20, 22]
steps:
- uses: actions/checkout@v4
# No `version:` here on purpose — pnpm/action-setup@v4 refuses to run when
# the version is pinned both here and in package.json's packageManager,
# which is the single source of truth.
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm verify:office2html --require-installed
- run: pnpm typecheck
- run: pnpm lint
- run: pnpm exec prettier --check 'src/**/*.ts' 'tests/**/*.ts'
- run: pnpm test:unit
- run: pnpm test:integration
# e2e drives the built binary, so it has to come after the build.
- run: pnpm build
- run: pnpm test:consumer
- run: pnpm test:browser
- run: pnpm test:e2e
- name: Verify platform-specific package installation
if: matrix.node == 20
run: pnpm test:packaging
- name: Install Chromium for local engine regression tests
if: matrix.node == 20
run: pnpm exec playwright-core install --with-deps chromium
- name: Verify standalone slide rendering
if: matrix.node == 20
run: pnpm test:local
env:
DECKRENDER_LOCAL_E2E: '1'
- name: Verify browser SDK against cross-origin fake cloud
if: matrix.node == 20
run: pnpm test:browser:e2e
- name: Verify the version constant matches package.json
run: node scripts/sync-version.mjs --check