From 7240720572cc83a47e8841aaaa0f820523ae17f7 Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 15 Jul 2025 10:00:29 -0400 Subject: [PATCH] Uses matrix for shard number in Playwright tests Uses the matrix context for the shard number in the Playwright test workflow. This change ensures the correct shard number is used when running Playwright tests in parallel. --- temp/playwright-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index 6e0b8ec4d..91e9126a7 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -158,8 +158,8 @@ jobs: FILTER="$FILTER" PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}" SERVE_PATH="${{ parameters.npmServePath }}" - SHARD_NUMBER=$(shardNumber) - TOTAL_SHARDS=$(totalShards) + SHARD_NUMBER=${{ matrix.shardNumber }} + TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \ --env-file "${{ parameters.envFileName }}" \ @@ -174,8 +174,8 @@ jobs: export FILTER="$FILTER" export PLAYWRIGHT_PATH="${{ parameters.playwrightTestsPath }}" export SERVE_PATH="${{ parameters.npmServePath }}" - export SHARD_NUMBER=$(shardNumber) - export TOTAL_SHARDS=$(totalShards) + export SHARD_NUMBER=${{ matrix.shardNumber }} + export TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \ --env-file "${{ parameters.envFileName }}" \