mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
92408e7ee9
- buildMcpArgs: use CI env var instead of token detection (preserves local behavior) - browser.test.ts: align tests with CI-based mode detection - api-health.test.ts: remove duplicate xueqiu entry - browser-public.test.ts: unify BBC test with tryBrowserCommand - vitest.config.ts: default to unit tests only (E2E via explicit path) - ci.yml: remove unnecessary needs:build for unit-test, use composite action - e2e-headed.yml: use composite action, increase timeout to 20min - Add .github/actions/setup-chrome composite action for shared CI steps
27 lines
741 B
YAML
27 lines
741 B
YAML
name: Setup Chrome + xvfb
|
|
description: Install real Chrome and xvfb virtual display for headed browser testing
|
|
|
|
outputs:
|
|
chrome-path:
|
|
description: Path to the installed Chrome binary
|
|
value: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install real Chrome (stable)
|
|
uses: browser-actions/setup-chrome@v1
|
|
id: setup-chrome
|
|
with:
|
|
chrome-version: stable
|
|
|
|
- name: Verify Chrome installation
|
|
shell: bash
|
|
run: |
|
|
echo "Chrome path: ${{ steps.setup-chrome.outputs.chrome-path }}"
|
|
${{ steps.setup-chrome.outputs.chrome-path }} --version
|
|
|
|
- name: Install xvfb for headed mode
|
|
shell: bash
|
|
run: sudo apt-get install -y xvfb
|