From 5b8cf60bd9aa89479c05488bd84ac86473944eff Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 31 Oct 2026 18:53:00 +0100 Subject: [PATCH] ci: run the integration suite in the playwright image that matches the installed version --- integration/run-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration/run-tests.sh b/integration/run-tests.sh index 0525858f4..b7bcefbbb 100755 --- a/integration/run-tests.sh +++ b/integration/run-tests.sh @@ -28,7 +28,10 @@ set -euo pipefail REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)" INTEGRATION_DIR="${REPO_ROOT}/integration" -PW_IMAGE="mcr.microsoft.com/playwright:v1.59.1-noble" +# The image's browsers only work with the same Playwright version, so take +# the tag from the one npm installed. +PW_VERSION="$(cd "${REPO_ROOT}" && node -p "require('@playwright/test/package.json').version")" +PW_IMAGE="mcr.microsoft.com/playwright:v${PW_VERSION}-noble" # Read by docker-compose.yml as the stalwart build argument. export STALWART_IMAGE="${STALWART_IMAGE:-stalwartlabs/stalwart:v0.16}"