Skip to content

Commit

Permalink
Check for broken links in CI test job
Browse files Browse the repository at this point in the history
  • Loading branch information
natikgadzhi committed Aug 26, 2023
1 parent b4e39af commit 7a69033
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a69033

Please sign in to comment.