From e630f787298a607ca6cd20397c0bc6d0dc96223d Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Thu, 26 Nov 2026 20:09:59 +0100 Subject: [PATCH] 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) --- .github/workflows/ui.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 0c32992d3e..60e5e8582e 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -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