From 5dca71b0753f7403eec4d312131bedbd7c424531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=BA=94?= Date: Wed, 8 Jul 2026 17:51:43 +0800 Subject: [PATCH] =?UTF-8?q?ci(e2e):=20=E6=94=B9=E7=94=A8docker=20run?= =?UTF-8?q?=E8=B7=91playwright=EF=BC=8C=E4=BF=AE=E5=A4=8Dcontainer?= =?UTF-8?q?=E6=A8=A1=E5=BC=8Fcheckout=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-cd.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index ae28fd604..ecc7b3002 100755 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -400,7 +400,6 @@ jobs: staging-e2e: name: Staging E2E Tests runs-on: saas - container: mcr.microsoft.com/playwright:v1.45.0-jammy if: github.ref_name == 'develop' || github.ref_name == 'main' needs: deploy-staging @@ -409,15 +408,17 @@ jobs: uses: actions/checkout@v4 - name: Run Playwright E2E on staging - working-directory: apps/web - env: - E2E_BASE_URL: https://staging.xiaoxiajianji.com - E2E_API_BASE: https://staging-api.xiaoxiajianji.com/api/v1 - E2E_BROWSER_CHANNEL: chromium + shell: sh run: | set -eu - npm ci - npx playwright test --reporter=line --project=chromium + docker run --rm \ + -e E2E_BASE_URL=https://staging.xiaoxiajianji.com \ + -e E2E_API_BASE=https://staging-api.xiaoxiajianji.com/api/v1 \ + -e E2E_BROWSER_CHANNEL=chromium \ + -v "$PWD:/workspace" \ + -w /workspace/apps/web \ + mcr.microsoft.com/playwright:v1.45.0-jammy \ + sh -lc "npm ci && npx playwright test --reporter=line --project=chromium" build-production-runtime-images: name: Build Production Runtime Images