We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4d95bf + 2ee02ec commit 89788fbCopy full SHA for 89788fb
1 file changed
.github/workflows/tests-pr.yml
@@ -197,8 +197,10 @@ jobs:
197
with:
198
node-version: ${{ matrix.node }}
199
- name: Unit tests
200
- run: pnpm vitest run ${{ matrix.shard && format('--shard {0}', matrix.shard) || '' }}
+ run: pnpm vitest run ${{ env.POOL_OPTIONS }} ${{ env.SHARD_OPTIONS }}
201
env:
202
+ POOL_OPTIONS: ${{ matrix.os == 'macos-latest' && '--pool forks' || '' }}
203
+ SHARD_OPTIONS: ${{ matrix.shard && format('--shard {0}', matrix.shard) || '' }}
204
VITEST_MIN_THREADS: "1"
205
VITEST_MAX_THREADS: "4"
206
0 commit comments