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
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:
@@ -414,6 +414,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
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
|
- name: 🏥 CMS Deep Health Check
|
||||||
env:
|
env:
|
||||||
DEPLOY_URL: ${{ needs.prepare.outputs.next_public_url }}
|
DEPLOY_URL: ${{ needs.prepare.outputs.next_public_url }}
|
||||||
@@ -436,13 +457,16 @@ jobs:
|
|||||||
- name: 🚀 OG Image Check
|
- name: 🚀 OG Image Check
|
||||||
env:
|
env:
|
||||||
TEST_URL: ${{ needs.prepare.outputs.next_public_url }}
|
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
|
- name: 📝 E2E Smoke Test
|
||||||
continue-on-error: true
|
|
||||||
env:
|
env:
|
||||||
NEXT_PUBLIC_BASE_URL: ${{ needs.prepare.outputs.next_public_url }}
|
NEXT_PUBLIC_BASE_URL: ${{ needs.prepare.outputs.next_public_url }}
|
||||||
GATEKEEPER_PASSWORD: ${{ secrets.GATEKEEPER_PASSWORD }}
|
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
|
# JOB 6: Notifications
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ const BASE_URL = process.env.TEST_URL || "http://localhost:3000";
|
|||||||
console.log(`\n🚀 Starting OG Image Verification for ${BASE_URL}\n`);
|
console.log(`\n🚀 Starting OG Image Verification for ${BASE_URL}\n`);
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
"/api/og/meme", // Adjusted for mintel.me endpoints if they exist
|
"/opengraph-image",
|
||||||
|
"/about/opengraph-image",
|
||||||
|
"/contact/opengraph-image",
|
||||||
];
|
];
|
||||||
|
|
||||||
async function verifyImage(path: string): Promise<boolean> {
|
async function verifyImage(path: string): Promise<boolean> {
|
||||||
|
|||||||
Reference in New Issue
Block a user