Files
flights_web/.gitea/workflows/release-verify.yml
T
gnezim 9788f4f7b5 ci: scope build-args to docker_build step + downgrade upload-artifact
Job-level MAP_TILE_URL=/api/... and API_BASE_URL=/api leaked into the
unit-test step; src/env/index.ts validates these as URLs via Zod and
rejected the relative path, breaking 57 of 2057 tests. Move the env
exports to the docker_build step where they're actually consumed.

Gitea Actions doesn't support actions/upload-artifact@v4 (GHES-only).
Downgrade to v3 in ci-deploy.yml and release-verify.yml.
2026-04-27 13:55:52 +03:00

61 lines
1.8 KiB
YAML

name: release-verify
# Workflow C: run after Jenkins has finished building (operator triggers manually).
# Probes the customer URL until it serves a fresh build, then runs the e2e suite
# against http://flights-ui.devwebzavod.ru with the console-error gate.
on:
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Notify start
if: ${{ env.TELEGRAM_BOT_TOKEN != '' }}
run: scripts/ci/notify-telegram.sh start release-verify
- name: Setup Node + pnpm
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Wait for customer URL
id: wait_customer
run: scripts/ci/wait-for-url.sh http://flights-ui.devwebzavod.ru/ru-ru/onlineboard 60 5
- name: Run Playwright e2e against customer URL
id: e2e_customer
env:
BASE_URL: http://flights-ui.devwebzavod.ru
run: pnpm test:e2e
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: release-verify-failure-${{ github.run_id }}
path: |
playwright-report/
retention-days: 7
- name: Notify (success)
if: success() && env.TELEGRAM_BOT_TOKEN != ''
run: scripts/ci/notify-telegram.sh ok release-verify "customer URL e2e green"
- name: Notify (failure)
if: failure() && env.TELEGRAM_BOT_TOKEN != ''
run: scripts/ci/notify-telegram.sh fail release-verify "see Gitea run for Playwright report"