mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
test(metadata): expand end-to-end scenarios and assertions
This commit is contained in:
@@ -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 || '' }}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user