From 4a045c6847b1f722075f110ad0e39cd2fc08959d Mon Sep 17 00:00:00 2001 From: maguire-arman Date: Tue, 15 Jul 2025 10:44:23 -0400 Subject: [PATCH] Adds CI environment variable to Docker containers Ensures that the CI environment variable is set to true within the Docker containers. This enables proper detection of the CI environment in the running tests. --- temp/playwright-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/temp/playwright-test.yml b/temp/playwright-test.yml index d0b37a008..8dcab435e 100644 --- a/temp/playwright-test.yml +++ b/temp/playwright-test.yml @@ -162,6 +162,7 @@ jobs: TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \ + --env CI=true \ --env-file "${{ parameters.envFileName }}" \ ${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \ npx concurrently -k -n 'server,playwright' \ @@ -178,6 +179,7 @@ jobs: export TOTAL_SHARDS=${{ parameters.totalShards }} container_id=$(docker create \ --ipc=host \ + --env CI=true \ --env-file "${{ parameters.envFileName }}" \ ${{ parameters.dockerImageName }}:${{ parameters.imageTag }} \ bash -c "PLAYWRIGHT_BLOB_OUTPUT_DIR='/app/blob-report' npx --prefix $PLAYWRIGHT_PATH playwright test $PLAYWRIGHT_PATH --config=$PLAYWRIGHT_PATH/playwright.config.ts --shard=$SHARD_NUMBER/$TOTAL_SHARDS --reporter=list,blob $FILTER" \