diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index 6457109d..9f2fe334 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -133,24 +133,20 @@ jobs: https://ui-dashboard.gnerim.ru/api/dictionary/1/cities \ | grep -iE "^HTTP|x-cache-status" - # E2e suite is temporarily disabled while we triage real assertion - # failures (breadcrumb locale mismatches, etc.) — the CI/CD pipeline - # itself (build → deploy → health) is working. Re-enable after the - # specs are fixed or partitioned into release-verify. - # - name: Install Playwright browsers - # id: playwright_install - # run: pnpm exec playwright install --with-deps chromium - # - # - name: Run Playwright e2e - # id: e2e - # env: - # BASE_URL: https://ui-dashboard.gnerim.ru - # BASIC_AUTH_USER: ${{ secrets.BASIC_AUTH_USER }} - # BASIC_AUTH_PASS: ${{ secrets.BASIC_AUTH_PASS }} - # run: pnpm test:e2e + - name: Install Playwright browsers + id: playwright_install + run: pnpm exec playwright install --with-deps chromium + + - name: Run Playwright e2e + id: e2e + env: + BASE_URL: https://ui-dashboard.gnerim.ru + BASIC_AUTH_USER: ${{ secrets.BASIC_AUTH_USER }} + BASIC_AUTH_PASS: ${{ secrets.BASIC_AUTH_PASS }} + run: pnpm test:e2e - name: Rollback on failure (post-deploy steps) - if: failure() && (steps.swap.outcome == 'failure' || steps.health.outcome == 'failure') + if: failure() && (steps.swap.outcome == 'failure' || steps.health.outcome == 'failure' || steps.e2e.outcome == 'failure') id: rollback run: scripts/ci/deploy-container.sh rollback