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