Commit 0b550fb
authored
feat(ci): run demo tests against local workspace code (#2481)
* feat(ci): run demo tests against local workspace code
Mirrors the examples approach:
- Add pnpm overrides for superdoc and @superdoc-dev/react so demos
resolve from local workspace instead of npm
- Add demos/* and demos/*/* to pnpm workspace
- Rewrite ci-demos workflow: shared build job with pnpm workspace
install, expanded path triggers (packages/superdoc, super-editor,
layout-engine, react), Playwright browser cache
- Increase smoke test timeouts for SPA hydration and dev server startup
* fix(ci): trigger demos CI on root config file changes
Changes to package.json, pnpm-lock.yaml, or pnpm-workspace.yaml
affect workspace resolution and can break demo installs.
* fix(demos): add missing prosemirror-state dependency to toolbar demo
The toolbar demo imports prosemirror-state directly but never declared
it. Worked with npm's flat hoisting but fails with pnpm's strict
module resolution.1 parent fc59604 commit 0b550fb
5 files changed
Lines changed: 73 additions & 21 deletions
File tree
- .github/workflows
- demos
- __tests__
- toolbar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
10 | | - | |
| 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 | + | |
11 | 51 | | |
12 | 52 | | |
13 | 53 | | |
| |||
32 | 72 | | |
33 | 73 | | |
34 | 74 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 75 | + | |
| 76 | + | |
39 | 77 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
49 | 82 | | |
50 | 83 | | |
51 | 84 | | |
52 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments