From 7a69033403900e5a9956993769fefef4ddef0698 Mon Sep 17 00:00:00 2001 From: Natik Gadzhi Date: Fri, 25 Aug 2023 17:18:21 -0700 Subject: [PATCH] Check for broken links in CI test job --- Gemfile | 4 ++++ docker-compose.yaml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 8c1ceb7e7..419277678 100644 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,8 @@ source 'https://rubygems.org' gem 'jekyll', '~> 4.2.1' gem 'jekyll-redirect-from' +# html-proofer checks for broken links. +# used in docker-compose.yml test job +gem 'html-proofer' + gem "webrick", "~> 1.7" diff --git a/docker-compose.yaml b/docker-compose.yaml index be16897f9..c90b58cd4 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -43,7 +43,8 @@ services: command: /bin/bash -cl " bundle check && bundle exec jekyll doctor --source /srv/jekyll --destination /output - && bundle exec jekyll build --source /srv/jekyll --destination /output" + && bundle exec jekyll build --source /srv/jekyll --destination /output + && bundle exec htmlproofer --only_4xx --ignore-urls twitter.com /output" website: <<: *common