diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3cd35600d4b..e15a50530da9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -420,10 +420,16 @@ jobs: pnpm exec tsx scripts/ci-unit-tests.ts --build-only ${{ github.event_name == 'pull_request' && format('--affected --base={0}', github.event.pull_request.base.sha) || '' }} - name: Run affected tests + env: + NX_PARALLEL: '2' + VITEST_MAX_WORKERS: '2' run: pnpm run test:pr:browser --base=${{ github.event.pull_request.base.sha }} if: github.event_name == 'pull_request' - name: Run all tests + env: + NX_PARALLEL: '2' + VITEST_MAX_WORKERS: '2' run: pnpm run test:ci:browser if: github.event_name != 'pull_request'