Skip to content

Commit

Permalink
chore(test): run unit tests in shards
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 committed Oct 19, 2023
1 parent d19aa5e commit 897c21b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
os: [ubuntu-latest]
node: [18, 20]
experimental: [false]
shardIndex: [1, 2, 3, 4]
shardTotal: [4]
# include:
# - os: windows-latest
# node: 16
Expand Down Expand Up @@ -80,6 +82,6 @@ jobs:
run: |
node -v
npm -v
yarn test
yarn test --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }}
env:
SANITY_CI_CLI_AUTH_TOKEN: ${{ secrets.SANITY_CI_CLI_AUTH_TOKEN }}

0 comments on commit 897c21b

Please sign in to comment.