From 0dcfa77002b0e76dfa31c6a1c8f748addbf74f33 Mon Sep 17 00:00:00 2001 From: Binoy Patel Date: Thu, 3 Oct 2024 12:37:02 -0400 Subject: [PATCH] chore(test): add sharding to test workflow --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d11d975026f..52753028c36 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,5 +71,6 @@ jobs: - name: Test id: test run: | - node -v - pnpm test:vitest + pnpm test:vitest --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }} + env: + GITHUB_SHARD_IDENTIFIER: ${{ matrix.shardIndex }}-${{ matrix.shardTotal }}