Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

ci: run test-webchat in the Playwright container (#4534)

Ben Pankowc2aff23a7052
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 29dd0000c..5dddc122d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -189,6 +189,11 @@ jobs:
test-webchat:
runs-on: ubuntu-latest
+ # The image bakes in Chromium and its system libraries. Keep its tag in
+ # lockstep with packages/eve's playwright-core version.
+ container:
+ image: mcr.microsoft.com/playwright:v1.63.0-noble@sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27
+ options: --ipc=host
steps:
- name: Checkout code
@@ -208,9 +213,6 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- - name: Install Chromium
- run: pnpm --filter eve exec playwright-core install --with-deps chromium-headless-shell
-
- name: Run web chat tests
run: pnpm test:webchat
diff --git a/packages/eve/vitest.browser.config.ts b/packages/eve/vitest.browser.config.ts
index 554bb370b..23c7f3949 100644
--- a/packages/eve/vitest.browser.config.ts
+++ b/packages/eve/vitest.browser.config.ts
@@ -7,7 +7,8 @@ import { workflow } from "./src/internal/testing/workflow-vitest-plugin.js";
*
* Drives client templates' real React pages in headless Chromium against an
* in-memory agent, like the integration tier, but over a real HTTP listener and
- * a real browser. These run in their own CI job, which installs Chromium with
+ * a real browser. These run in their own CI job inside the Playwright container
+ * image, which ships Chromium. Locally, install it with
* `pnpm --filter eve exec playwright-core install chromium-headless-shell`.
* The first run also installs the Web Chat template's registry dependencies
* into a temp directory outside the workspace, so it needs the npm registry.