Skip to content

Commit 7a69033

Browse files
committed
Check for broken links in CI test job
1 parent b4e39af commit 7a69033

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ source 'https://rubygems.org'
44
gem 'jekyll', '~> 4.2.1'
55
gem 'jekyll-redirect-from'
66

7+
# html-proofer checks for broken links.
8+
# used in docker-compose.yml test job
9+
gem 'html-proofer'
10+
711
gem "webrick", "~> 1.7"

docker-compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ services:
4343
command: /bin/bash -cl "
4444
bundle check
4545
&& bundle exec jekyll doctor --source /srv/jekyll --destination /output
46-
&& bundle exec jekyll build --source /srv/jekyll --destination /output"
46+
&& bundle exec jekyll build --source /srv/jekyll --destination /output
47+
&& bundle exec htmlproofer --only_4xx --ignore-urls twitter.com /output"
4748

4849
website:
4950
<<: *common

0 commit comments

Comments
 (0)