ui: install the demo harness before the app's type check in CI (#33145)

The app's demo helpers import @ggml-org/llama-demo, a link to ui/lib/demo,
and svelte-check resolves the harness sources' imports (@playwright/test
among them) from ui/lib/demo/node_modules. The Checks job installed only
the app, so its type check failed on the harness since it moved there.

Assisted-by: Claude (Opus 5.5 Medium)
This commit is contained in:
Aleksander Grygier 2026-11-26 20:09:59 +01:00 • committed by GitHub
parent 5d7bb89f47
commit e630f78729
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,8 +83,16 @@ jobs:
run: npm ci
working-directory: ui/apps/chat
# the app's demo helpers import the demo harness (ui/lib/demo), whose sources resolve
# @playwright/test and its other types from its own node_modules
- name: Install demo harness dependencies
id: setup-demo
if: ${{ steps.setup.conclusion == 'success' }}
run: npm ci
working-directory: ui/lib/demo
- name: Run type checking
if: ${{ always() && steps.setup.conclusion == 'success' }}
if: ${{ always() && steps.setup.conclusion == 'success' && steps.setup-demo.conclusion == 'success' }}
run: npm run check
working-directory: ui/apps/chat