parent
4d1112386f
commit
7feba692b1
1 changed files with 3 additions and 3 deletions
6
.github/workflows/typescript_test.yml
vendored
6
.github/workflows/typescript_test.yml
vendored
|
|
@ -220,12 +220,12 @@ jobs:
|
|||
|
||||
echo "Total tests to run: $TEST_COUNT"
|
||||
|
||||
# Calculate optimal shard count - 1 shard per 5 tests, min 1, max 40
|
||||
# Calculate optimal shard count - 1 shard per 5 tests, min 1, max 10
|
||||
SHARD_COUNT=$(( (TEST_COUNT + 4) / 5 ))
|
||||
if [ $SHARD_COUNT -lt 1 ]; then
|
||||
SHARD_COUNT=1
|
||||
elif [ $SHARD_COUNT -gt 40 ]; then
|
||||
SHARD_COUNT=40
|
||||
elif [ $SHARD_COUNT -gt 10 ]; then
|
||||
SHARD_COUNT=10
|
||||
fi
|
||||
|
||||
# Create the matrix combinations string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue