mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 15:17:15 +00:00
feat(workflow-e2e): add E2E tests for agentAutofillMedia workflow
- Setup E2E package under packages/e2e - Use testcontainers to spin up postgres and temporal dev server - Overwrite activities in global registry to mock AI model output - Track temporal workers and expose shutdownWorkers() method for clean shutdown - Integrate test:e2e:workflow into root package.json and GitHub actions CI
This commit is contained in:
@@ -138,3 +138,26 @@ jobs:
|
||||
name: playwright-report-app-${{ matrix.project }}
|
||||
path: playwright-report/
|
||||
retention-days: 7
|
||||
|
||||
workflow_e2e:
|
||||
name: Workflow E2E
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ripgrep bubblewrap socat ffmpeg
|
||||
|
||||
- name: Run Workflow E2E Tests
|
||||
run: bun run test:e2e:workflow
|
||||
|
||||
Reference in New Issue
Block a user