diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45e298794f10..079122c3fdc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -783,7 +783,7 @@ jobs: job_node_integration_tests: name: Node (${{ matrix.node }})${{ (matrix.typescript && format(' (TS {0})', matrix.typescript)) || '' }} Integration - Tests + Tests (${{ matrix.shard }}/3) needs: [job_get_metadata, job_build] if: needs.job_build.outputs.changed_node_integration == 'true' || github.event_name != 'pull_request' runs-on: ubuntu-24.04 @@ -792,12 +792,20 @@ jobs: fail-fast: false matrix: node: [20.19, 22, 24, 26] + shard: [1, 2, 3] typescript: - false include: # Only check typescript for latest version (to streamline CI) - node: 24 typescript: '5.0' + shard: 1 + - node: 24 + typescript: '5.0' + shard: 2 + - node: 24 + typescript: '5.0' + shard: 3 steps: - name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }}) uses: actions/checkout@v7 @@ -832,7 +840,7 @@ jobs: - name: Run integration tests working-directory: dev-packages/node-integration-tests - run: yarn test + run: yarn test --shard=${{ matrix.shard }}/3 job_cloudflare_integration_tests: name: Cloudflare Integration Tests diff --git a/dev-packages/browser-integration-tests/playwright.browser.config.ts b/dev-packages/browser-integration-tests/playwright.browser.config.ts index dd48c8f54746..9fbee13a25dd 100644 --- a/dev-packages/browser-integration-tests/playwright.browser.config.ts +++ b/dev-packages/browser-integration-tests/playwright.browser.config.ts @@ -3,6 +3,7 @@ import CorePlaywrightConfig from './playwright.config'; const config: PlaywrightTestConfig = { ...CorePlaywrightConfig, + workers: process.env.CI ? 6 : undefined, testDir: './suites', };