ci: access private at-mintel with a read token, vendor smoke-test action
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Successful in 2m1s
🚀 Build & Deploy / 🏗️ Build (push) Successful in 4m9s
🚀 Build & Deploy / 🚀 Deploy (push) Successful in 9s
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 59s
🚀 Build & Deploy / 🔔 Notify (push) Successful in 2s

mmintel/at-mintel is now private (its committed .env was publicly readable),
so anonymous ls-remote/clone/raw access fails. Use the read-only
MINTEL_PRIVATE_TOKEN secret for every access.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

The core-smoke-tests action is vendored because the runner cannot fetch actions from a private repo.
This commit is contained in:
2026-12-03 10:42:34 +01:00
co-authored by Claude Opus 5.5
parent bf6bc2174c
commit 43e4f09d34
2 changed files with 51 additions and 8 deletions
@@ -0,0 +1,41 @@
name: "Mintel Core Smoke Tests"
description: "Executes standard fast HTTP, API, and Locale validation checks."
inputs:
TARGET_URL:
description: 'The deployed URL to test against'
required: true
GATEKEEPER_PASSWORD:
description: 'Gatekeeper bypass password'
required: true
UMAMI_API_ENDPOINT:
description: 'Umami Analytics Endpoint'
required: false
default: 'https://analytics.infra.mintel.me'
SENTRY_DSN:
description: 'Sentry / Glitchtip DSN'
required: false
runs:
using: "composite"
steps:
- name: 🌐 Full Sitemap HTTP Validation
shell: bash
env:
NEXT_PUBLIC_BASE_URL: ${{ inputs.TARGET_URL }}
GATEKEEPER_PASSWORD: ${{ inputs.GATEKEEPER_PASSWORD }}
run: pnpm run check:http
- name: 🌐 Locale & Language Switcher Validation
shell: bash
env:
NEXT_PUBLIC_BASE_URL: ${{ inputs.TARGET_URL }}
GATEKEEPER_PASSWORD: ${{ inputs.GATEKEEPER_PASSWORD }}
run: pnpm run check:locale
- name: 🌐 External API Smoke Test (Umami & Sentry)
shell: bash
env:
UMAMI_API_ENDPOINT: ${{ inputs.UMAMI_API_ENDPOINT }}
SENTRY_DSN: ${{ inputs.SENTRY_DSN }}
run: pnpm run check:apis
+10 -8
View File
@@ -110,21 +110,22 @@ jobs:
TAG_TO_WAIT="v$UPSTREAM_VERSION" TAG_TO_WAIT="v$UPSTREAM_VERSION"
if [[ -n "$UPSTREAM_VERSION" && "$UPSTREAM_VERSION" != "workspace:"* ]]; then if [[ -n "$UPSTREAM_VERSION" && "$UPSTREAM_VERSION" != "workspace:"* ]]; then
# 1. Discovery (Works without token for public repositories) # mmintel/at-mintel is private: every access needs a read token (MINTEL_PRIVATE_TOKEN).
UPSTREAM_SHA=$(git ls-remote --tags https://git.infra.mintel.me/mmintel/at-mintel.git "$TAG_TO_WAIT" | grep "$TAG_TO_WAIT" | tail -n1 | awk '{print $1}') POLL_TOKEN="${{ secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}"
# 1. Discovery
UPSTREAM_SHA=$(git ls-remote --tags "https://ci:${POLL_TOKEN}@git.infra.mintel.me/mmintel/at-mintel.git" "$TAG_TO_WAIT" | grep "$TAG_TO_WAIT" | tail -n1 | awk '{print $1}')
if [[ -z "$UPSTREAM_SHA" ]]; then if [[ -z "$UPSTREAM_SHA" ]]; then
echo "❌ Error: Tag $TAG_TO_WAIT not found in mmintel/at-mintel." echo "❌ Error: Tag $TAG_TO_WAIT not found in mmintel/at-mintel."
exit 1 exit 1
fi fi
echo "✅ Tag verified: Found upstream SHA $UPSTREAM_SHA for $TAG_TO_WAIT" echo "✅ Tag verified: Found upstream SHA $UPSTREAM_SHA for $TAG_TO_WAIT"
# 2. Status Check (Requires PAT for cross-repo API access) # 2. Status Check
POLL_TOKEN="${{ secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}"
if [[ -n "$POLL_TOKEN" ]]; then if [[ -n "$POLL_TOKEN" ]]; then
echo "⏳ POLL_TOKEN found. Checking upstream build status..." echo "⏳ POLL_TOKEN found. Checking upstream build status..."
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ curl -sf -H "Authorization: token $POLL_TOKEN" \
"https://git.infra.mintel.me/mmintel/at-mintel/raw/branch/main/packages/infra/scripts/wait-for-upstream.sh" > wait-for-upstream.sh "https://git.infra.mintel.me/mmintel/at-mintel/raw/branch/main/packages/infra/scripts/wait-for-upstream.sh" > wait-for-upstream.sh
chmod +x wait-for-upstream.sh chmod +x wait-for-upstream.sh
GITEA_TOKEN="$POLL_TOKEN" ./wait-for-upstream.sh "mmintel/at-mintel" "$TAG_TO_WAIT" GITEA_TOKEN="$POLL_TOKEN" ./wait-for-upstream.sh "mmintel/at-mintel" "$TAG_TO_WAIT"
@@ -400,7 +401,8 @@ jobs:
- name: 🌐 Core Smoke Tests (HTTP, API, Locale) - name: 🌐 Core Smoke Tests (HTTP, API, Locale)
if: always() && steps.deps.outcome == 'success' if: always() && steps.deps.outcome == 'success'
uses: https://git.infra.mintel.me/mmintel/at-mintel/.gitea/actions/core-smoke-tests@main # vendored from mmintel/at-mintel (private repo, the runner cannot fetch actions from it)
uses: ./.gitea/actions/core-smoke-tests
with: with:
TARGET_URL: ${{ needs.prepare.outputs.next_public_url }} TARGET_URL: ${{ needs.prepare.outputs.next_public_url }}
GATEKEEPER_PASSWORD: ${{ secrets.GATEKEEPER_PASSWORD || vars.GATEKEEPER_PASSWORD }} GATEKEEPER_PASSWORD: ${{ secrets.GATEKEEPER_PASSWORD || vars.GATEKEEPER_PASSWORD }}