fix(ci): fix OG image routes and proper post-deploy environment setup
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Successful in 1m50s
Build & Deploy / 🏗️ Build (push) Successful in 13m22s
Build & Deploy / 🚀 Deploy (push) Successful in 23s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 3m39s
Build & Deploy / 🔔 Notify (push) Successful in 4s

This commit is contained in:
2026-03-02 10:08:23 +01:00
parent 7f8cea4728
commit 760a6d6db3
2 changed files with 30 additions and 4 deletions

View File

@@ -414,6 +414,27 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Provide sibling monorepo
run: |
git clone https://git.infra.mintel.me/mmintel/at-mintel.git _at-mintel
sed -i 's|../../../at-mintel|../../_at-mintel|g' apps/web/package.json
sed -i 's|../../../at-mintel|../../_at-mintel|g' apps/web/tsconfig.json
sed -i 's|../at-mintel|./_at-mintel|g' package.json
- name: 🔐 Registry Auth
run: |
echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc
echo "//${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
- name: Install dependencies
run: |
pnpm install --no-frozen-lockfile
- name: 🏥 CMS Deep Health Check
env:
DEPLOY_URL: ${{ needs.prepare.outputs.next_public_url }}
@@ -436,13 +457,16 @@ jobs:
- name: 🚀 OG Image Check
env:
TEST_URL: ${{ needs.prepare.outputs.next_public_url }}
run: npx tsx apps/web/scripts/check-og-images.ts
run: pnpm --filter @mintel/web check:og
- name: 📝 E2E Smoke Test
continue-on-error: true
env:
NEXT_PUBLIC_BASE_URL: ${{ needs.prepare.outputs.next_public_url }}
GATEKEEPER_PASSWORD: ${{ secrets.GATEKEEPER_PASSWORD }}
run: npx tsx apps/web/scripts/check-forms.ts || echo '⚠️ E2E skipped (Puppeteer may not be available)'
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "false"
run: |
# Install Puppeteer system dependencies
sudo apt-get update && sudo apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libcomposite1 libxdamage1 libxrandr2 libgbm1 libasound2
pnpm --filter @mintel/web check:forms
# ──────────────────────────────────────────────────────────────────────────────
# JOB 6: Notifications