mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
accdd970a4
* test(browser): add real Chrome AX smoke * fix(browser): attach cross-origin frame targets directly * fix(browser): resolve frame target by URL * test(browser): include frame target URL in AX smoke * fix(browser): discover iframe targets before routing * fix(browser): resolve iframe targets through CDP * fix(browser): auto-attach iframe targets for routing * test(browser): make cross-origin AX smoke a capability probe * docs(browser): mark cross-origin AX as best-effort * ci(browser): keep AX smoke out of normal e2e sweep
94 lines
2.6 KiB
YAML
94 lines
2.6 KiB
YAML
name: E2E Headed Chrome
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
paths:
|
|
- 'extension/**'
|
|
- 'src/browser/**'
|
|
- 'src/daemon.ts'
|
|
- 'src/execution.ts'
|
|
- 'src/interceptor.ts'
|
|
- 'tests/e2e/**'
|
|
- 'tests/smoke/**'
|
|
- '.github/actions/setup-chrome/**'
|
|
- '.github/workflows/e2e-headed.yml'
|
|
pull_request:
|
|
branches: [main, dev]
|
|
paths:
|
|
- 'extension/**'
|
|
- 'src/browser/**'
|
|
- 'src/daemon.ts'
|
|
- 'src/execution.ts'
|
|
- 'src/interceptor.ts'
|
|
- 'tests/e2e/**'
|
|
- 'tests/smoke/**'
|
|
- '.github/actions/setup-chrome/**'
|
|
- '.github/workflows/e2e-headed.yml'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: e2e-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
e2e-headed:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# NOTE: Windows excluded — browser-actions/setup-chrome hangs during
|
|
# Chrome MSI installation on Windows runners (known issue).
|
|
os: [ubuntu-latest, macos-latest]
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Setup Chrome
|
|
uses: ./.github/actions/setup-chrome
|
|
id: setup-chrome
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Build extension
|
|
run: npm run build --prefix extension
|
|
|
|
- name: Run AX Chrome smoke (Linux, via xvfb)
|
|
if: runner.os == 'Linux'
|
|
env:
|
|
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
OPENCLI_AX_E2E: '1'
|
|
run: |
|
|
xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" \
|
|
npx vitest run --project e2e tests/e2e/browser-ax-chrome.test.ts --reporter=verbose
|
|
|
|
- name: Run AX Chrome smoke (macOS / Windows)
|
|
if: runner.os != 'Linux'
|
|
env:
|
|
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|
|
OPENCLI_AX_E2E: '1'
|
|
run: npx vitest run --project e2e tests/e2e/browser-ax-chrome.test.ts --reporter=verbose
|
|
|
|
- name: Run E2E tests (Linux, via xvfb)
|
|
if: runner.os == 'Linux'
|
|
env:
|
|
OPENCLI_AX_E2E: '0'
|
|
run: |
|
|
xvfb-run --auto-servernum --server-args="-screen 0 1280x720x24" \
|
|
npx vitest run tests/e2e/ --reporter=verbose
|
|
|
|
- name: Run E2E tests (macOS / Windows)
|
|
if: runner.os != 'Linux'
|
|
env:
|
|
OPENCLI_AX_E2E: '0'
|
|
run: npx vitest run tests/e2e/ --reporter=verbose
|