Use shards when running integration tests (#18246)

This PR splits CI integration tests in 3 shards to reduce the time it
takes to run them to hopefully prevent timeouts on a single step.
This commit is contained in:
Robin Malfait 2025-06-06 21:43:17 +02:00 committed by GitHub
parent ada85b1f24
commit f0f42f62c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,8 +99,18 @@ jobs:
CARGO_PROFILE_RELEASE_LTO: 'off'
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: 'lld-link'
- name: Test ${{ matrix.integration }}
run: pnpm run test:integrations ./integrations/${{ matrix.integration }}
- name: Test ${{ matrix.integration }} 1/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 1/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
- name: Test ${{ matrix.integration }} 2/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 2/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
- name: Test ${{ matrix.integration }} 3/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 3/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}