Merge pull request #192 from GafferHQ/create-pull-request/patch #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check HTML and Links | |
on: [ push, pull_request ] | |
jobs: | |
Check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install | |
gem install nokogiri | |
gem install html-proofer --minimal-deps | |
env: | |
NOKOGIRI_USE_SYSTEM_LIBRARIES: true # speeds up installation of html-proofer | |
- name: Build | |
run: bundle exec jekyll build | |
- name: Check | |
run: | | |
htmlproofer ./_site --only-4xx --ignore-urls "/vimeo.com/,/twitter.com/,/arnoldrenderer.com/,/shotgridsoftware.com/" |