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