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.
This commit is contained in:
maguire-arman 2025-07-15 10:44:23 -04:00
parent 0bebce1d92
commit 4a045c6847

View file

@ -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" \