From b743af8d9034961d2201410ab1061c31165afc63 Mon Sep 17 00:00:00 2001 From: thzxx <1440196015@qq.com> Date: Sun, 9 Aug 2026 13:12:25 +0800 Subject: [PATCH] =?UTF-8?q?ci(e2e):=20=E6=94=B9=E7=94=A8=20Playwright=20?= =?UTF-8?q?=E5=AE=98=E6=96=B9=20Docker=20=E9=95=9C=E5=83=8F=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20debian11=20=E4=B8=8D=E6=94=AF=E6=8C=81=20c?= =?UTF-8?q?hromium=20=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runner 宿主为 Debian 11,Playwright 1.62 的 install-deps 已不支持; 改用 mcr.microsoft.com/playwright:v1.62.1-noble 容器自带 Chromium 与系统依赖。 --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9855a34..5095088 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -60,6 +60,9 @@ jobs: e2e: runs-on: debian-latest + # 使用 Playwright 官方镜像:自带 Chromium 与全部系统依赖, + # 避免 runner 宿主(Debian 11)不被 Playwright 1.62 支持的问题。 + container: mcr.microsoft.com/playwright:v1.62.1-noble timeout-minutes: 15 steps: - uses: actions/checkout@v4 @@ -72,8 +75,8 @@ jobs: run: npm ci - name: Build run: npm run build - - name: Install Playwright browsers - run: npx playwright install --with-deps chromium + - name: Verify Playwright browsers + run: npx playwright install chromium - name: Run E2E smoke tests run: npm run test:e2e