ci: fix lychee link checker binary on ARM and handle false positives
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 28s
Build & Deploy / 🧪 QA (push) Successful in 3m53s
Build & Deploy / 🏗️ Build (push) Successful in 2m39s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Smoke Test (push) Successful in 49s
Build & Deploy / ♿ WCAG (push) Successful in 2m3s
Build & Deploy / 🛡️ Quality Gates (push) Successful in 3m24s
Build & Deploy / ⚡ Lighthouse (push) Successful in 7m2s
Build & Deploy / 🔔 Notify (push) Successful in 8s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 28s
Build & Deploy / 🧪 QA (push) Successful in 3m53s
Build & Deploy / 🏗️ Build (push) Successful in 2m39s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Smoke Test (push) Successful in 49s
Build & Deploy / ♿ WCAG (push) Successful in 2m3s
Build & Deploy / 🛡️ Quality Gates (push) Successful in 3m24s
Build & Deploy / ⚡ Lighthouse (push) Successful in 7m2s
Build & Deploy / 🔔 Notify (push) Successful in 8s
This commit is contained in:
@@ -4,7 +4,33 @@ set -e
|
|||||||
# Auto-provision Lychee Rust Binary if missing
|
# Auto-provision Lychee Rust Binary if missing
|
||||||
if [ ! -f ./lychee ]; then
|
if [ ! -f ./lychee ]; then
|
||||||
echo "📥 Downloading Lychee Link Checker (v0.15.1)..."
|
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
|
|
||||||
|
OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
|
||||||
|
ARCH="$(uname -m)"
|
||||||
|
VERSION="lychee-v0.23.0"
|
||||||
|
|
||||||
|
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
|
||||||
|
ARCH_MAPPED="x86_64"
|
||||||
|
elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
|
||||||
|
ARCH_MAPPED="aarch64"
|
||||||
|
else
|
||||||
|
echo "❌ Unsupported architecture: $ARCH"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$OS" = "darwin" ]; then
|
||||||
|
TARGET="arm64-macos"
|
||||||
|
elif [ "$OS" = "linux" ]; then
|
||||||
|
TARGET="${ARCH_MAPPED}-unknown-linux-gnu"
|
||||||
|
else
|
||||||
|
echo "❌ Unsupported OS: $OS"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
DOWNLOAD_URL="https://github.com/lycheeverse/lychee/releases/download/${VERSION}/lychee-${TARGET}.tar.gz"
|
||||||
|
echo "Downloading from $DOWNLOAD_URL"
|
||||||
|
|
||||||
|
curl -sSLo lychee.tar.gz "$DOWNLOAD_URL"
|
||||||
tar -xzf lychee.tar.gz lychee
|
tar -xzf lychee.tar.gz lychee
|
||||||
rm lychee.tar.gz
|
rm lychee.tar.gz
|
||||||
chmod +x ./lychee
|
chmod +x ./lychee
|
||||||
@@ -19,8 +45,10 @@ echo "🚀 Starting Deep Link Assessment (Lychee)..."
|
|||||||
--exclude "127.0.0.1" \
|
--exclude "127.0.0.1" \
|
||||||
--exclude "mintel\.me" \
|
--exclude "mintel\.me" \
|
||||||
--exclude "example\.com" \
|
--exclude "example\.com" \
|
||||||
--exclude-mail \
|
--exclude "linkedin\.com" \
|
||||||
--accept 200,204,401,403 \
|
--exclude "fonts\." \
|
||||||
"./content/**/*.mdx" "./content/**/*.md" "./app/**/*.tsx" "./components/**/*.tsx"
|
--base-url "http://127.0.0.1" \
|
||||||
|
--accept 200,204,308,401,403,999 \
|
||||||
|
"./data/**/*.mdx" "./data/**/*.md" "./app/**/*.tsx" "./components/**/*.tsx"
|
||||||
|
|
||||||
echo "✅ All project source links are alive and healthy!"
|
echo "✅ All project source links are alive and healthy!"
|
||||||
|
|||||||
Reference in New Issue
Block a user