ci(windows): serialize native test files

This commit is contained in:
Dudu-0223 2026-08-25 18:12:03 +08:00
parent aeb83639c4
commit 560729be76
2 changed files with 7 additions and 2 deletions

View file

@ -504,6 +504,8 @@ jobs:
shell: pwsh
run: >-
pnpm exec vitest run
--no-file-parallelism
--testTimeout 30000
packages/shell/tool-pwsh/tests/loader.spec.ts
packages/workflow/workflow-worker-thread/tests/workflow-worker-thread.spec.ts
packages/workflow/tool-ralph/tests/integration.spec.ts

View file

@ -113,8 +113,11 @@ describe('CI workflow', () => {
const nativeTestCommands = nativeTestSteps.filter((step): step is Record<string, unknown> & { run: string } => (
isRecord(step) && typeof step.run === 'string'
))
expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('tool-pwsh/tests/loader.spec.ts')
expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('workflow-worker-thread.spec.ts')
const nativeTestCommand = nativeTestCommands.map(step => step.run).join('\n')
expect(nativeTestCommand).toContain('--no-file-parallelism')
expect(nativeTestCommand).toContain('--testTimeout 30000')
expect(nativeTestCommand).toContain('tool-pwsh/tests/loader.spec.ts')
expect(nativeTestCommand).toContain('workflow-worker-thread.spec.ts')
// windows-observational is non-blocking.
expect(windowsObservational.name).toBe('windows node 24 / observational')