chore: upgrade e2e dependencies (#1098)

This commit is contained in:
Dream Hunter
2026-07-31 12:43:29 +08:00
committed by GitHub
parent 95badf5aed
commit 2dcbad40ad
5 changed files with 101 additions and 76 deletions

View File

@@ -1,3 +1,5 @@
set -euo pipefail
cd frontend/
pnpm up
pnpm add -D wrangler@latest
@@ -17,3 +19,18 @@ cd vitepress-docs/
pnpm up --latest
pnpm add -D wrangler@latest
cd ..
cd e2e/ || exit 1
npx --yes npm-check-updates@23.0.0 --upgrade
npm install
PLAYWRIGHT_VERSION="$(node -p "require('./package.json').devDependencies['@playwright/test']")"
EXPECTED_IMAGE="mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble"
if ! awk -v expected="${EXPECTED_IMAGE}" \
'$1 == "FROM" && $2 == expected { found=1 } END { exit !found }' \
Dockerfile.e2e; then
echo "Dockerfile.e2e must use Playwright ${PLAYWRIGHT_VERSION}" >&2
exit 1
fi
cd ..