-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (29 loc) · 902 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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/"