Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 18s
Build & Deploy / 🧪 QA (push) Successful in 2m0s
Build & Deploy / 🏗️ Build (push) Successful in 2m49s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Smoke Test (push) Successful in 57s
Build & Deploy / ♿ WCAG (push) Successful in 2m29s
Build & Deploy / 🛡️ Quality Gates (push) Failing after 3m42s
Build & Deploy / 📸 Visual Diff (push) Failing after 6m6s
Build & Deploy / ⚡ Lighthouse (push) Successful in 10m55s
Build & Deploy / 🔔 Notify (push) Successful in 3s
27 lines
888 B
Bash
27 lines
888 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Auto-provision Lychee Rust Binary if missing
|
|
if [ ! -f ./lychee ]; then
|
|
echo "📥 Downloading Lychee Link Checker (v0.15.1)..."
|
|
curl -sSLo lychee.tar.gz https://github.com/lycheeverse/lychee/releases/download/v0.15.1/lychee-v0.15.1-x86_64-unknown-linux-gnu.tar.gz
|
|
tar -xzf lychee.tar.gz lychee
|
|
rm lychee.tar.gz
|
|
chmod +x ./lychee
|
|
fi
|
|
|
|
echo "🚀 Starting Deep Link Assessment (Lychee)..."
|
|
|
|
# Exclude localhost, mintel.me (internal infrastructure), and common placeholder domains
|
|
# Scan markdown files and component files for hardcoded dead links
|
|
./lychee \
|
|
--exclude "localhost" \
|
|
--exclude "127.0.0.1" \
|
|
--exclude "mintel\.me" \
|
|
--exclude "example\.com" \
|
|
--exclude-mail \
|
|
--accept 200,204,401,403 \
|
|
"./content/**/*.mdx" "./content/**/*.md" "./app/**/*.tsx" "./components/**/*.tsx"
|
|
|
|
echo "✅ All project source links are alive and healthy!"
|