Uses function call for shard number assignment.

Replaces direct matrix value access with a function call to obtain the shard number.
This approach enhances flexibility and maintainability by abstracting the source of the shard number.
This commit is contained in:
maguire-arman 2025-07-15 10:08:40 -04:00
parent 7240720572
commit 0bebce1d92

View file

@ -158,7 +158,7 @@ jobs:
FILTER="$FILTER"
PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
SERVE_PATH="${{ parameters.npmServePath }}"
SHARD_NUMBER=${{ matrix.shardNumber }}
SHARD_NUMBER=$(shardNumber)
TOTAL_SHARDS=${{ parameters.totalShards }}
container_id=$(docker create \
--ipc=host \
@ -174,7 +174,7 @@ jobs:
export FILTER="$FILTER"
export PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
export SERVE_PATH="${{ parameters.npmServePath }}"
export SHARD_NUMBER=${{ matrix.shardNumber }}
export SHARD_NUMBER=$(shardNumber)
export TOTAL_SHARDS=${{ parameters.totalShards }}
container_id=$(docker create \
--ipc=host \