Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
0484b49
fix: allow hovering on TOC
chittolina May 15, 2026
c4b6f62
feat: hover TOC highlights the entire TIOC
chittolina May 15, 2026
4544d00
refactor: simplified code
chittolina May 15, 2026
c435a54
fix: comments from PR
chittolina May 26, 2026
ebba2ec
fix: ensure sdBlock is not empty
chittolinag May 26, 2026
6ecff25
fix: enhance anchor navigation logic in TOC
chittolina May 26, 2026
d37361e
fix: preserve bookmarkStart/end order
chittolina May 26, 2026
76b714b
Merge branch 'main' into gabriel/sd-3227-bug-toc-section-links-fail-b…
chittolina May 28, 2026
7bad8f0
feat(superdoc): add layout-change event for responsive fit-to-contain…
mattConnHarbour May 28, 2026
f168de5
fix(superdoc): wait for layout ready before capturing base document w…
mattConnHarbour May 28, 2026
fd9f34b
test(superdoc): add tests for layout-change event
mattConnHarbour May 28, 2026
139765c
feat(super-editor): add ui.comments.setActive for activate-only comme…
caio-pizzol May 29, 2026
845fbfd
feat(superdoc): expose pendingSelection on the pending comments-updat…
caio-pizzol May 29, 2026
99d5ad6
feat(super-editor): support text range targets in ui.viewport.getRect…
caio-pizzol May 29, 2026
aefcb1a
chore(deps): bump uuid to ^11.1.1 (CVE-2026-41907)
mattConnHarbour Jun 3, 2026
2fee76a
fix(super-editor): rethrow export docx errors
xy200303 Jun 5, 2026
f174110
feat(superdoc): zoom modes with viewport metrics and fit-width (SD-3294)
caio-pizzol Jun 5, 2026
ac41f85
feat(react): zoom and viewport callback props (SD-3294)
caio-pizzol Jun 5, 2026
e2c93be
docs(superdoc): zoom modes, viewport-change event, fit-width config (…
caio-pizzol Jun 5, 2026
6472895
feat(superdoc): observable zoom-mode transitions and format-aware vie…
caio-pizzol Jun 5, 2026
74d41d5
feat(ui): zoom domain, useSuperDocZoom, and zoom-fit-width command (S…
caio-pizzol Jun 5, 2026
62476fb
Merge remote-tracking branch 'upstream/main' into matthew/sd-3294-lay…
mattConnHarbour Jun 5, 2026
cbe8261
Merge remote-tracking branch 'origin/matthew/sd-3294-layout-change-ev…
caio-pizzol Jun 5, 2026
4ae1d4f
test(superdoc): cover pdf normalization, widest-page, and fit-width c…
caio-pizzol Jun 5, 2026
90b768d
chore: refresh host-event prose and export snapshots after base merge…
caio-pizzol Jun 5, 2026
4192222
chore: restore base-side bytes the merge format hook rewrote (SD-3294)
caio-pizzol Jun 5, 2026
96ab4f8
fix(superdoc): key viewport-change dedup on fit, not raw available wi…
caio-pizzol Jun 5, 2026
a58352c
fix(super-editor): preserve generated line breaks in DOCX export (SD-…
caio-pizzol Jun 4, 2026
480ea20
fix(super-editor): keep caret after replacing break-only list content…
caio-pizzol Jun 5, 2026
f9a7b8e
fix(super-editor): require PM-contiguity when coalescing search range…
caio-pizzol Jun 5, 2026
042762d
Merge branch 'main' into sd-3361
caio-pizzol Jun 5, 2026
d643fb9
fix(superdoc): blocker round for zoom modes from review (SD-3294)
caio-pizzol Jun 5, 2026
34077b0
fix(ui): zoom hygiene for mode-only emissions (SD-3294)
caio-pizzol Jun 5, 2026
3bd10f3
test(super-editor): cover executeSpanTextRewrite newline probe (SD-3278)
caio-pizzol Jun 5, 2026
8c0ef72
chore(deps): regenerate pnpm-lock.yaml from a clean checkout
caio-pizzol Jun 5, 2026
ded0f3f
chore(deps): drop @types/uuid (uuid@11 ships its own types)
caio-pizzol Jun 5, 2026
4e14994
test(superdoc): cover viewport fit zoom edges
caio-pizzol Jun 5, 2026
65c3d5b
Merge branch 'main' into sd-3361
caio-pizzol Jun 5, 2026
f260c69
fix(superdoc): land the always-latest metrics store the prior message…
caio-pizzol Jun 5, 2026
3b4d535
docs(superdoc): width-source wording reflects laid-out pages first (S…
caio-pizzol Jun 5, 2026
1f6e463
docs(superdoc): tighten fit-width zoom docs
caio-pizzol Jun 5, 2026
bf716fe
docs: update bundled font license notices
caio-pizzol Jun 5, 2026
09d00a6
test(superdoc): declare esModule interop on the async PdfViewer mock …
caio-pizzol Jun 5, 2026
1342203
docs: add responsive zoom example
caio-pizzol Jun 5, 2026
1d5e023
chore: fix registry sync
harbournick Jun 5, 2026
25928d7
chore: gate bundled font license metadata
caio-pizzol Jun 5, 2026
1938ebb
Merge pull request #3659 from superdoc-dev/caio/sd-3294-fit-to-contai…
caio-pizzol Jun 5, 2026
6b2f044
Merge branch 'main' into matthew/sd-3294-layout-change-event
caio-pizzol Jun 5, 2026
dedb0f6
Merge pull request #3548 from superdoc-dev/matthew/sd-3294-layout-cha…
caio-pizzol Jun 5, 2026
b1c3ee5
Merge pull request #3665 from superdoc-dev/caio-pizzol/font-license-n…
caio-pizzol Jun 5, 2026
e7c5bf3
Merge pull request #3615 from superdoc-dev/sd-3361
caio-pizzol Jun 5, 2026
7f1c984
Merge pull request #3630 from superdoc-dev/caio/sd-3278-docx-export-c…
caio-pizzol Jun 5, 2026
72b5eb2
Merge branch 'stable'
harbournick Jun 5, 2026
c249d35
Merge pull request #3667 from superdoc-dev/caio/sd-3294-responsive-zo…
caio-pizzol Jun 5, 2026
f625b8e
refactor(font-system): source substitution evidence from @docfonts/fa…
caio-pizzol Jun 5, 2026
6530315
fix: align layout column expectation
caio-pizzol Jun 5, 2026
8f90d4d
Merge pull request #3669 from superdoc-dev/caio-pizzol/docfonts-fallb…
caio-pizzol Jun 5, 2026
197d2dc
Merge remote-tracking branch 'origin/stable' into sync/stable-to-main…
github-actions[bot] Jun 6, 2026
a96e918
Merge pull request #3668 from superdoc-dev/caio-pizzol/sd-2629-column…
caio-pizzol Jun 6, 2026
4ce95e9
Merge pull request #3670 from superdoc-dev/sync/stable-to-main-202606…
caio-pizzol Jun 6, 2026
176bd7f
chore(font-system): upgrade @docfonts/fallbacks to 0.3.0
caio-pizzol Jun 6, 2026
5c7e0d1
Merge pull request #3671 from superdoc-dev/caio-pizzol/fallbacks-0.3-…
caio-pizzol Jun 6, 2026
e101be3
feat(font-system): attach docfonts verdict evidence to font reports
caio-pizzol Jun 6, 2026
8ade7db
Merge pull request #3672 from superdoc-dev/caio-pizzol/verdict-aware-…
caio-pizzol Jun 6, 2026
d54bd43
feat(font-system): document-specific toolbar fonts with support status
caio-pizzol Jun 6, 2026
5d4d1cf
fix(toolbar): re-render the dropdown when toolbar items rebuild
caio-pizzol Jun 6, 2026
9601ac9
Merge branch 'main' into fix/export-docx-rethrow
xy200303 Jun 6, 2026
676a0e2
test(toolbar): cover document font option regressions
caio-pizzol Jun 6, 2026
52027e8
test(toolbar): add font dropdown behavior coverage
caio-pizzol Jun 6, 2026
177bd3e
fix: de-dupe SuperDoc export exceptions
caio-pizzol Jun 6, 2026
35c7959
Merge pull request #3641 from xy200303/fix/export-docx-rethrow
caio-pizzol Jun 6, 2026
6bfe356
fix(toolbar): hide support labels and sort fonts
caio-pizzol Jun 7, 2026
e1ea5ea
refactor(font-system): consume docfonts generic
caio-pizzol Jun 7, 2026
3dd2268
chore: merge main into document font options
caio-pizzol Jun 7, 2026
e13e349
test: stabilize font dropdown checks
caio-pizzol Jun 8, 2026
be35a48
refactor(toolbar): expose plain document font options
caio-pizzol Jun 8, 2026
4d6258d
docs: document custom font options
caio-pizzol Jun 8, 2026
3aeab61
fix: normalize custom toolbar font selection
caio-pizzol Jun 8, 2026
8004c0c
fix: preserve selection around font pickers
caio-pizzol Jun 8, 2026
5608510
fix: caret positioning for tabs and soft-break lines
garhm Jun 8, 2026
b826e8a
fix: caret positioning for tabs and soft-break lines
garhm Jun 8, 2026
7a59925
Merge branch 'main' into fix/tab-caret-jump-fix
garhm Jun 8, 2026
cf4d5f1
fix: keep selection visible around font menus
caio-pizzol Jun 8, 2026
de055a8
docs: document focus-preserving toolbar menus
caio-pizzol Jun 8, 2026
2c16e90
fix: tighten document font toolbar updates
caio-pizzol Jun 8, 2026
5db745f
Merge pull request #3673 from superdoc-dev/caio-pizzol/document-font-…
caio-pizzol Jun 8, 2026
0e50ed9
fix: balance multi-column sections at continuous section breaks (SD-3…
tupizz Jun 8, 2026
ef5fef5
feat(toolbar): source font pickers from docfonts catalog
caio-pizzol Jun 8, 2026
f21a5e9
fix(toolbar): scroll long font dropdowns
caio-pizzol Jun 8, 2026
adc0727
Revert "feat(toolbar): source font pickers from docfonts catalog"
caio-pizzol Jun 8, 2026
50217a5
Merge remote-tracking branch origin/main into gabriel/sd-2663-feature…
chittolina Jun 8, 2026
aac85d9
chore: ensure correct corpus bucket
harbournick Jun 8, 2026
690e855
test: cover caret geometry painter contracts
caio-pizzol Jun 8, 2026
7ca6cfb
Merge branch 'main' into fix/tab-caret-jump-fix
caio-pizzol Jun 8, 2026
95bc98c
Merge pull request #3677 from garhm/fix/tab-caret-jump-fix
caio-pizzol Jun 8, 2026
62a54c4
docs: add garhm to community contributors
github-actions[bot] Jun 8, 2026
dfb39ec
Merge pull request #3680 from superdoc-dev/docs/add-contributor-garhm
caio-pizzol Jun 8, 2026
cc70112
fix: tests
chittolina Jun 8, 2026
0fc566b
Merge remote-tracking branch 'origin/main' into gabriel/sd-2663-featu…
chittolina Jun 8, 2026
fef7eda
Merge branch 'main' into chit-run/07d78b2b-70eb-448c-96bf-ffbe04b51e2…
caio-pizzol Jun 8, 2026
8507fca
fix(toolbar): keep dropdown menus in view
caio-pizzol Jun 8, 2026
1787059
Merge pull request #3679 from superdoc-dev/chit-run/07d78b2b-70eb-448…
caio-pizzol Jun 8, 2026
e525e8e
fix(super-editor): harden comments setActive routing (SD-3319)
caio-pizzol Jun 8, 2026
acfc3ef
chore(font-system): bump docfonts fallbacks
caio-pizzol Jun 8, 2026
7399562
fix(super-editor): wire comments setActive runtime path (SD-3319)
caio-pizzol Jun 8, 2026
5884efb
chore(super-editor): keep setActive identity mapping in UI (SD-3319)
caio-pizzol Jun 8, 2026
3e6d6cc
feat(font-system): bundle Caprasimo fallback
caio-pizzol Jun 8, 2026
826fa36
Merge branch 'main' into caio/sd-3319-add-an-activate-only-comment-api
caio-pizzol Jun 8, 2026
888257f
fix(superdoc): gate pendingSelection to matching editor selections (S…
caio-pizzol Jun 8, 2026
8d8a7ef
feat(super-editor): add ui.viewport.getScrollContainer (SD-3324)
caio-pizzol May 29, 2026
5d5ab6f
feat(super-editor): invalidate viewport geometry on sidebar-toggle (S…
caio-pizzol May 29, 2026
4a6e6b1
fix(super-editor): harden scroll container getter (SD-3324)
caio-pizzol Jun 9, 2026
1ae2d03
fix: behavior tests
chittolina Jun 9, 2026
ffd549a
Merge branch 'main' into gabriel/sd-3227-bug-toc-section-links-fail-b…
chittolinag Jun 9, 2026
1c57958
Merge pull request #3333 from superdoc-dev/gabriel/sd-2663-feature-su…
harbournick Jun 9, 2026
d9f8dc6
Merge branch 'main' into gabriel/sd-3227-bug-toc-section-links-fail-b…
harbournick Jun 9, 2026
24a388d
feat(toolbar): add font family combobox
caio-pizzol Jun 9, 2026
6e52e9b
fix(editor): preserve formatting when typing over toolbar selection
caio-pizzol Jun 9, 2026
37cf8c9
fix(fonts): adopt docfonts 0.12 face sources
caio-pizzol Jun 9, 2026
f80ce4f
fix(font-system): advertise Cooper Black in font picker
caio-pizzol Jun 9, 2026
baa5a1b
feat(ui): expose font size options
caio-pizzol Jun 9, 2026
c896870
docs(toolbar): document font combobox behavior
caio-pizzol Jun 9, 2026
3639869
fix(toolbar): preserve tracked replacements from font inputs
caio-pizzol Jun 9, 2026
680767d
fix(font-system): harden synthetic fallback faces
caio-pizzol Jun 9, 2026
0efed1a
test(font-system): align font picker expectations
caio-pizzol Jun 9, 2026
9c00aae
fix(toolbar): align font picker keyboard behavior
caio-pizzol Jun 9, 2026
baff992
chore(font-system): guard docfonts evidence drift
caio-pizzol Jun 9, 2026
83673b0
fix(toolbar): harden font combobox selection flow
caio-pizzol Jun 9, 2026
95eac35
test(toolbar): wait for dropdown focus instead of racing fixed ticks
caio-pizzol Jun 9, 2026
188df20
Merge pull request #3684 from superdoc-dev/caio-pizzol/docfonts-fallb…
caio-pizzol Jun 9, 2026
86d81b6
feat(font-system): bundle OFL fallback batch
caio-pizzol Jun 9, 2026
d223cfe
feat(font-system): advertise OFL fallback fonts
caio-pizzol Jun 9, 2026
b8136d5
test(behavior): open font size list via caret in composite styles
caio-pizzol Jun 9, 2026
4f43b8c
test(behavior): make font combobox specs deterministic
caio-pizzol Jun 9, 2026
eb7d967
test(painter-dom): expect the drop cap physical family
caio-pizzol Jun 9, 2026
9225131
Merge pull request #3695 from superdoc-dev/caio-pizzol/docfonts-ofl-b…
caio-pizzol Jun 9, 2026
324c917
Merge branch 'main' into caio-pizzol/font-family-combobox
caio-pizzol Jun 9, 2026
211b4c3
fix(document-api): subsume inline cell changes inside a whole-table t…
andrii-harbour Jun 5, 2026
ff7d5ab
feat(font-system): bundle reviewed OFL fallback rows
caio-pizzol Jun 9, 2026
b44f6aa
fix(toolbar): stabilize font input handoff
caio-pizzol Jun 10, 2026
a4f3531
fix(toolbar): clarify font picker split controls
caio-pizzol Jun 10, 2026
364dd1f
Merge pull request #3697 from superdoc-dev/caio-pizzol/docfonts-ofl-b…
caio-pizzol Jun 10, 2026
f9d0038
Merge remote-tracking branch 'origin/main' into caio-pizzol/font-fami…
caio-pizzol Jun 10, 2026
659af1e
fix(toolbar): flush pending font marks on editor handoff
caio-pizzol Jun 10, 2026
cf35dcd
Merge branch 'main' into gabriel/sd-3227-bug-toc-section-links-fail-b…
harbournick Jun 10, 2026
95ce176
Merge pull request #3514 from superdoc-dev/gabriel/sd-3227-bug-toc-se…
harbournick Jun 10, 2026
da20772
Merge branch 'orbit-canonical-publishing' (#3699)
superdoc-bot[bot] Jun 10, 2026
29188ed
test(behavior): use retrying assertions for annotation underline checks
caio-pizzol Jun 10, 2026
65840c5
Merge pull request #3692 from superdoc-dev/caio-pizzol/font-family-co…
caio-pizzol Jun 10, 2026
e56b215
feat(font-system): bundle legal-cleared fallback rows
caio-pizzol Jun 10, 2026
5408498
feat(font-system): bundle Archivo Black and PT Sans Narrow
caio-pizzol Jun 10, 2026
c715efe
Merge pull request #3698 from superdoc-dev/caio-pizzol/docfonts-legal…
caio-pizzol Jun 10, 2026
a6b36dd
Merge branch 'main' into caio-pizzol/docfonts-ofl-batch-3
caio-pizzol Jun 10, 2026
0ba515b
feat(font-system): bundle TeX Gyre Bonum
caio-pizzol Jun 10, 2026
d8fbd32
Merge pull request #3701 from superdoc-dev/caio-pizzol/docfonts-ofl-b…
caio-pizzol Jun 10, 2026
114d35a
Merge branch 'main' into caio-pizzol/docfonts-bonum-batch
caio-pizzol Jun 10, 2026
5c89103
feat(font-system): adopt docfonts 0.15 fallback rows
caio-pizzol Jun 10, 2026
ea917bb
Merge branch 'caio-pizzol/docfonts-bonum-batch' into caio-pizzol/docf…
caio-pizzol Jun 10, 2026
52d0f16
feat: textbox content editing - rendering and interaction (phase 0 an…
artem-harbour Jun 10, 2026
eecd010
test(behavior): wait for triple-click selection before continuing
caio-pizzol Jun 10, 2026
f03de4a
Merge branch 'main' into caio-pizzol/docfonts-bonum-batch
caio-pizzol Jun 10, 2026
86df264
Merge branch 'caio-pizzol/docfonts-bonum-batch' into caio-pizzol/docf…
caio-pizzol Jun 10, 2026
d8745ee
Merge pull request #3703 from superdoc-dev/caio-pizzol/docfonts-bonum…
caio-pizzol Jun 10, 2026
28b32f9
Merge pull request #3704 from superdoc-dev/caio-pizzol/docfonts-0-15-…
caio-pizzol Jun 10, 2026
77bdfe6
fix: process alphaModFix for images (#3691)
VladaHarbour Jun 10, 2026
ab6069a
Merge pull request #3583 from superdoc-dev/caio/sd-3329-text-range-ge…
caio-pizzol Jun 10, 2026
cf1e8dd
Merge branch 'main' into caio/viewport-scroll-container-and-sidebar-o…
caio-pizzol Jun 10, 2026
99c6cb9
Merge branch 'main' into caio/sd-3323-expose-the-pending-selection-on…
caio-pizzol Jun 10, 2026
76aab84
Merge remote-tracking branch 'origin/main' into caio/sd-3319-add-an-a…
caio-pizzol Jun 10, 2026
3a81377
feat(font-system): bundle docfonts 0.16 census rows
caio-pizzol Jun 10, 2026
4211a06
Merge pull request #3581 from superdoc-dev/caio/viewport-scroll-conta…
caio-pizzol Jun 10, 2026
7bab43d
Merge pull request #3578 from superdoc-dev/caio/sd-3323-expose-the-pe…
caio-pizzol Jun 10, 2026
6da8ab8
Merge pull request #3575 from superdoc-dev/caio/sd-3319-add-an-activa…
caio-pizzol Jun 10, 2026
9cfac54
Merge branch 'main' into caio-pizzol/docfonts-0-16-assets
caio-pizzol Jun 10, 2026
5be8a30
docs: clarify text range viewport rects
caio-pizzol Jun 10, 2026
185b0fd
docs: document active comment highlights
caio-pizzol Jun 10, 2026
8ee985e
docs: document pending comment selection
caio-pizzol Jun 10, 2026
a66b3af
docs: update viewport geometry examples
caio-pizzol Jun 10, 2026
ba85912
Merge pull request #3706 from superdoc-dev/caio/docs-custom-ui-api-co…
caio-pizzol Jun 10, 2026
2fbf5c5
Merge pull request #3705 from superdoc-dev/caio-pizzol/docfonts-0-16-…
caio-pizzol Jun 10, 2026
e45f526
feat(snapshots): consolidate layout:compare
harbournick Jun 10, 2026
4733d54
chore: create measurement to layout ownership matrix
VladaHarbour May 28, 2026
55b022d
Merge pull request #38 from superdoc/fix/behavior-test-flakes
harbournick Jun 11, 2026
de10b24
fix(selection): table cell and multiline selection rendering (SD-3328)
tupizz Jun 9, 2026
e830e06
fix: various
harbournick Jun 11, 2026
80f2c9c
Merge pull request #61 from superdoc/nick/test-ci
harbournick Jun 11, 2026
6e983e7
fix(plan-engine): runtime block-identity self-heal on compile
andrii-harbour May 30, 2026
81a11d5
fix(ci): linear sync
harbournick Jun 11, 2026
89c92e6
fix: rendering and text alignment for textboxes with table content
VladaHarbour Jun 11, 2026
ce63bc6
fix(layout): suppress pageBreakBefore directly after explicit break (…
tupizz Jun 11, 2026
1e4a7bf
Merge remote-tracking branch 'origin/main' into merge/main-into-stabl…
github-actions[bot] Jun 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 2 additions & 6 deletions .github/scripts/agent-docs-l1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,17 @@ export const CONFIG = {
'.git',
'.tmp',
'dist',
'devtools/visual-testing/node_modules',
'tests/consumer-typecheck/node_modules',
],
intentionalDifferentPairs: ['packages/superdoc/AGENTS.md:packages/superdoc/CLAUDE.md'],
canonicalSymlinkTarget: 'AGENTS.md',
knownCommands: [
'pnpm test',
'pnpm test:behavior',
'pnpm test:layout',
'pnpm test:visual',
'pnpm dev',
'pnpm build',
'pnpm corpus:upload',
'pnpm corpus:pull',
'pnpm layout:compare',
'pnpm docs:download',
'pnpm docs:upload',
],
docBasenames: new Set(['AGENTS.md', 'CLAUDE.md', 'CLAUDE.local.md']),
rulesDir: '.claude/rules',
Expand Down
234 changes: 0 additions & 234 deletions .github/workflows/baseline-superdoc.yml

This file was deleted.

76 changes: 59 additions & 17 deletions .github/workflows/ci-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ name: CI Demos
on:
pull_request:
paths:
- '.github/workflows/ci-demos.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '.nvmrc'
- 'demos/**'
- 'packages/superdoc/**'
- 'packages/react/**'
- 'packages/super-editor/**'
- 'packages/layout-engine/**'
- 'shared/**'
- 'package.json'
workflow_dispatch:

jobs:
Expand All @@ -19,12 +23,15 @@ jobs:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v4
with:
package_json_file: package.json

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -37,17 +44,15 @@ jobs:
# Other demos don't need this; cheap enough to run unconditionally.
run: pnpm --filter @superdoc-dev/react run build

- name: Install Playwright
working-directory: demos/__tests__
run: npx playwright install chromium
- name: Pack build artifact
run: tar -czf demos-build-dist.tgz packages/superdoc/dist packages/react/dist

- name: Cache workspace
uses: actions/cache/save@v4
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
path: |
.
~/.cache/ms-playwright
key: demos-workspace-${{ github.sha }}
name: demos-build-dist-${{ github.run_id }}
path: demos-build-dist.tgz
if-no-files-found: error

smoke-test:
needs: build
Expand All @@ -65,15 +70,52 @@ jobs:
- linked-sections
- nextjs-ssr
steps:
- name: Restore workspace
uses: actions/cache/restore@v4
with:
path: |
.
~/.cache/ms-playwright
key: demos-workspace-${{ github.sha }}
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v4
with:
package_json_file: package.json

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: demos-build-dist-${{ github.run_id }}
path: .

- name: Restore build artifact
run: tar -xzf demos-build-dist.tgz

- name: Resolve Playwright version
id: playwright-version
working-directory: demos/__tests__
run: echo "version=$(pnpm exec playwright --version | awk '{print $2}')" >> "$GITHUB_OUTPUT"

- name: Restore Playwright Chromium cache
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}-chromium

- name: Install Playwright Chromium
if: steps.playwright-cache.outputs.cache-hit != 'true'
working-directory: demos/__tests__
run: pnpm exec playwright install --with-deps chromium

- name: Install Playwright system dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
working-directory: demos/__tests__
run: pnpm exec playwright install-deps chromium

- name: Run smoke test
working-directory: demos/__tests__
Expand Down
Loading
Loading