test(metadata): expand end-to-end scenarios and assertions

This commit is contained in:
neon
2026-04-01 11:50:59 -06:00
parent a6d84ae20c
commit 157224be9f
22 changed files with 1611 additions and 164 deletions
+7
View File
@@ -3,6 +3,12 @@ run-name: ${{ format('Metadata Write E2E - {0}', github.ref_name) }}
on:
workflow_dispatch:
inputs:
vitest-args:
description: "Optional vitest args (examples: --shard=1/2, --testNamePattern=\"concurrency hardening\")"
required: false
default: ""
type: string
push:
paths:
- "server/src/modules/book/**"
@@ -46,3 +52,4 @@ jobs:
check-name: Server Metadata Write E2E
artifact-name: metadata-write-e2e-report
job-timeout-minutes: 60
vitest-args: ${{ github.event_name == 'workflow_dispatch' && inputs.vitest-args || '' }}
+11 -1
View File
@@ -20,6 +20,11 @@ on:
required: false
type: number
default: 45
vitest-args:
description: "Optional extra args forwarded to vitest (for shard/testNamePattern reruns)"
required: false
type: string
default: ""
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
@@ -65,7 +70,12 @@ jobs:
- name: Run e2e suite
shell: bash
run: pnpm run test:e2e -- ${{ inputs.suite-id }}
run: |
if [ -n "${{ inputs.vitest-args }}" ]; then
pnpm run test:e2e -- ${{ inputs.suite-id }} ${{ inputs.vitest-args }}
else
pnpm run test:e2e -- ${{ inputs.suite-id }}
fi
- name: Publish test report annotations
if: always()