ci(e2e): 改用docker run跑playwright,修复container模式checkout失败
CI/CD Pipeline / Staging E2E Tests (push) Failing after 18h59m42s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 19h1m51s
CI/CD Pipeline / Frontend Lint (push) Failing after 19h2m47s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 19h2m47s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1677h37m52s
CI/CD Pipeline / Deploy Production (push) Failing after 1677h37m55s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1677h37m56s

This commit is contained in:
灵应
2026-07-08 17:51:43 +08:00
parent 9f1f2dea0e
commit 5dca71b075
+9 -8
View File
@@ -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