ci(ubicloud): install web/ workspace so the collab bundle resolves @pcbjam/shared
The KiCad e2e collab specs rebuild apps/kicad/collab-bundle.js with esbuild (collab/build.mjs), bundling web/standalone/src/wasm/collab/* and its @pcbjam/shared import. That package is the web/pcbjam-shared submodule, resolved through the web/ pnpm workspace — which CI never installed, so the build failed with: [ERROR] Could not resolve "@pcbjam/shared". Install the web/ workspace (links @pcbjam/shared + pulls the bundle's runtime deps zod/@ts-rest/core/yjs) before the e2e step. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
68430fa87c
commit
dcb8d69e91
1 changed files with 12 additions and 0 deletions
12
.github/workflows/ci-ubicloud.yml
vendored
12
.github/workflows/ci-ubicloud.yml
vendored
|
|
@ -105,6 +105,18 @@ jobs:
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
# The collab e2e specs rebuild apps/kicad/collab-bundle.js with esbuild
|
||||||
|
# (collab/build.mjs), which bundles web/standalone/src/wasm/collab/* and
|
||||||
|
# its `@pcbjam/shared` import. That package is the web/pcbjam-shared
|
||||||
|
# submodule, resolved through the web/ pnpm workspace — so install it
|
||||||
|
# (and the bundle's runtime deps: zod, @ts-rest/core, yjs) here. Without
|
||||||
|
# this the bundle build fails: [ERROR] Could not resolve "@pcbjam/shared".
|
||||||
|
- name: Install web workspace deps (collab bundle)
|
||||||
|
working-directory: web
|
||||||
|
run: |
|
||||||
|
corepack enable
|
||||||
|
pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Install Playwright browsers
|
- name: Install Playwright browsers
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
run: npx playwright install --with-deps firefox chromium
|
run: npx playwright install --with-deps firefox chromium
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue