ci(windows): serialize native test files
This commit is contained in:
parent
aeb83639c4
commit
560729be76
2 changed files with 7 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -504,6 +504,8 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: >-
|
run: >-
|
||||||
pnpm exec vitest run
|
pnpm exec vitest run
|
||||||
|
--no-file-parallelism
|
||||||
|
--testTimeout 30000
|
||||||
packages/shell/tool-pwsh/tests/loader.spec.ts
|
packages/shell/tool-pwsh/tests/loader.spec.ts
|
||||||
packages/workflow/workflow-worker-thread/tests/workflow-worker-thread.spec.ts
|
packages/workflow/workflow-worker-thread/tests/workflow-worker-thread.spec.ts
|
||||||
packages/workflow/tool-ralph/tests/integration.spec.ts
|
packages/workflow/tool-ralph/tests/integration.spec.ts
|
||||||
|
|
|
||||||
|
|
@ -113,8 +113,11 @@ describe('CI workflow', () => {
|
||||||
const nativeTestCommands = nativeTestSteps.filter((step): step is Record<string, unknown> & { run: string } => (
|
const nativeTestCommands = nativeTestSteps.filter((step): step is Record<string, unknown> & { run: string } => (
|
||||||
isRecord(step) && typeof step.run === 'string'
|
isRecord(step) && typeof step.run === 'string'
|
||||||
))
|
))
|
||||||
expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('tool-pwsh/tests/loader.spec.ts')
|
const nativeTestCommand = nativeTestCommands.map(step => step.run).join('\n')
|
||||||
expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('workflow-worker-thread.spec.ts')
|
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.
|
// windows-observational is non-blocking.
|
||||||
expect(windowsObservational.name).toBe('windows node 24 / observational')
|
expect(windowsObservational.name).toBe('windows node 24 / observational')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue