diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3fbd3e3fe..69c8ef0c10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,9 @@ jobs: test: name: Test runs-on: ubuntu-latest + strategy: + matrix: + shard: [1/3, 2/3, 3/3] steps: - name: Check out Git repository @@ -63,7 +66,7 @@ jobs: run: yarn --non-interactive --frozen-lockfile - name: Run tests - run: yarn test:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB + run: yarn test:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB --shard=${{ matrix.shard }} - name: Check for missing fixtures run: | @@ -84,6 +87,9 @@ jobs: testslow: name: Slow Tests runs-on: ubuntu-latest + strategy: + matrix: + shard: [1/2, 2/2] steps: - name: Check out Git repository @@ -105,7 +111,7 @@ jobs: run: yarn --non-interactive --frozen-lockfile - name: Run slow tests & coverage - run: yarn test:slow:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB + run: yarn test:slow:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB --shard=${{ matrix.shard }} - name: Check for missing fixtures run: |