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:
parent
7240720572
commit
0bebce1d92
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ jobs:
|
||||||
FILTER="$FILTER"
|
FILTER="$FILTER"
|
||||||
PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
|
PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
|
||||||
SERVE_PATH="${{ parameters.npmServePath }}"
|
SERVE_PATH="${{ parameters.npmServePath }}"
|
||||||
SHARD_NUMBER=${{ matrix.shardNumber }}
|
SHARD_NUMBER=$(shardNumber)
|
||||||
TOTAL_SHARDS=${{ parameters.totalShards }}
|
TOTAL_SHARDS=${{ parameters.totalShards }}
|
||||||
container_id=$(docker create \
|
container_id=$(docker create \
|
||||||
--ipc=host \
|
--ipc=host \
|
||||||
|
|
@ -174,7 +174,7 @@ jobs:
|
||||||
export FILTER="$FILTER"
|
export FILTER="$FILTER"
|
||||||
export PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
|
export PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}"
|
||||||
export SERVE_PATH="${{ parameters.npmServePath }}"
|
export SERVE_PATH="${{ parameters.npmServePath }}"
|
||||||
export SHARD_NUMBER=${{ matrix.shardNumber }}
|
export SHARD_NUMBER=$(shardNumber)
|
||||||
export TOTAL_SHARDS=${{ parameters.totalShards }}
|
export TOTAL_SHARDS=${{ parameters.totalShards }}
|
||||||
container_id=$(docker create \
|
container_id=$(docker create \
|
||||||
--ipc=host \
|
--ipc=host \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue