mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-25 22:16:19 +00:00
* feat(plugins): add full-stack contributions and bookmarks example * ci(plugins): provision bookmark gateway for browser tests * fix(plugins): authenticate module downloads through configured backend * fix(plugins): isolate contributions and localize extension UI * fix(plugins): preserve bookmark agent routing and contain async callbacks * fix(plugins): pin durable batch workers to app extension snapshots
102 lines
3.0 KiB
YAML
102 lines
3.0 KiB
YAML
name: E2E Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ 'main', '2.0.x-dev' ]
|
|
paths:
|
|
- 'frontend/**'
|
|
- 'backend/app/gateway/routers/plugins.py'
|
|
- 'backend/extension_test_fixtures/bookmark_plugin_gateway.py'
|
|
- 'backend/packages/extension-api/**'
|
|
- 'backend/packages/harness/deerflow/extensions/**'
|
|
- 'backend/packages/harness/deerflow/config/plugin_settings.py'
|
|
- 'backend/pyproject.toml'
|
|
- 'backend/uv.lock'
|
|
- 'examples/deerflow-extension-bookmarks/**'
|
|
- '.github/workflows/e2e-tests.yml'
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
paths:
|
|
- 'frontend/**'
|
|
- 'backend/app/gateway/routers/plugins.py'
|
|
- 'backend/extension_test_fixtures/bookmark_plugin_gateway.py'
|
|
- 'backend/packages/extension-api/**'
|
|
- 'backend/packages/harness/deerflow/extensions/**'
|
|
- 'backend/packages/harness/deerflow/config/plugin_settings.py'
|
|
- 'backend/pyproject.toml'
|
|
- 'backend/uv.lock'
|
|
- 'examples/deerflow-extension-bookmarks/**'
|
|
- '.github/workflows/e2e-tests.yml'
|
|
|
|
concurrency:
|
|
group: e2e-tests-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
e2e-tests:
|
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
# The bookmark browser test starts the real Python action/router fixture.
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
# Keep aligned with backend/Dockerfile and other backend workflows.
|
|
version: "0.11.1"
|
|
|
|
- name: Install backend dependencies (bookmark plugin gateway)
|
|
working-directory: backend
|
|
run: uv sync --locked
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '24'
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Use pinned pnpm version
|
|
run: corepack prepare pnpm@10.26.2 --activate
|
|
|
|
- name: Install frontend dependencies
|
|
working-directory: frontend
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Install Playwright Chromium
|
|
working-directory: frontend
|
|
run: npx playwright install chromium --with-deps
|
|
|
|
- name: Run E2E tests
|
|
working-directory: frontend
|
|
run: pnpm exec playwright test
|
|
env:
|
|
SKIP_ENV_VALIDATION: '1'
|
|
|
|
- name: Run auth recovery E2E tests
|
|
working-directory: frontend
|
|
run: pnpm exec playwright test -c playwright.auth.config.ts
|
|
env:
|
|
SKIP_ENV_VALIDATION: '1'
|
|
|
|
- name: Upload Playwright report
|
|
uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: frontend/playwright-report/
|
|
retention-days: 7
|