From 5883387518c19aab8cd4378dad781d0a0b16c41f Mon Sep 17 00:00:00 2001 From: Nir Yechiel Date: Thu, 12 Feb 2026 21:55:51 +0200 Subject: [PATCH] Add internal link checking to PR tests Install html-proofer standalone in the workflow and validate internal links after building the site. Ignores redirect pages and the fontawesome CSS reference. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/pr-tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 0d945da..2fd842d 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -36,6 +36,16 @@ jobs: fi echo "✅ Site built successfully" + - name: Install html-proofer + run: gem install html-proofer + + - name: Check links + run: | + htmlproofer _site \ + --disable-external \ + --ignore-urls "/^\/2[0-9]{3}\//,/^https:\/\/nyechiel\.com\/2[0-9]{3}\//,/fontawesome/" \ + --no-enforce-https + markdown-lint: runs-on: ubuntu-latest