Skip to content

Commit 57dfb61

Browse files
committed
Added sharding
1 parent 59bcc92 commit 57dfb61

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/run-all-unit-tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
matrix:
1919
os: [macos-latest]
2020
# os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
21+
shard: ["1/5", "2/5", "3/5", "4/5", "5/5"]
2122

2223
steps:
2324
- uses: actions/checkout@v4
@@ -43,16 +44,16 @@ jobs:
4344
sudo chsh -s $(which zsh) $USER
4445
echo $0
4546
46-
echo $ZSH_NAME $ZSH_VERSION
47+
echo $ZSH_NAME $ZSH_VERSION
4748
export SHELL=/bin/zsh
4849
touch ~/.zshrc
4950
unset JAVA_HOME
5051
export PATH=/Users/runner/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/opt/curl/bin:/usr/local/bin:/usr/local/sbin:/Users/runner/bin:/usr/bin:/bin:/usr/sbin:/sbin
5152
export CI=true
52-
53-
npm run test -- ./test --no-file-parallelism --disable-console-intercept --exclude ./test/homebrew
53+
54+
npm run test -- ./test --no-file-parallelism --disable-console-intercept --exclude ./test/homebrew --shard ${{ matrix.shard }}
5455
5556
- name: Run tests (Linux)
5657
if: runner.os == 'Linux'
57-
run: npm run test -- ./test --no-file-parallelism --silent=passed-only
58+
run: npm run test -- ./test --no-file-parallelism --silent=passed-only --shard ${{ matrix.shard }}
5859

0 commit comments

Comments
 (0)