-
Notifications
You must be signed in to change notification settings - Fork 46
54 lines (47 loc) · 1.41 KB
/
test.yml
File metadata and controls
54 lines (47 loc) · 1.41 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: "Build and Lint Site"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# dependencies
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- uses: actions/setup-node@v4
with:
node-version: "19"
- name: Install dependencies
working-directory: ./docs
run: |
sudo apt-get install -y build-essential zlib1g-dev
gem install bundler
bundle config path vendor/bundle
bundle install
- name: Build the site
working-directory: ./docs
run: bundle exec jekyll build --future --strict_front_matter
- name: Validate all links, enforce alt text
working-directory: ./docs
run: |
bundle exec htmlproofer \
--ignore-files "/.*\/ro-crate-preview\.html/","/.*\/examples\/.*\/index\.html/" \
--disable-external true \
--enforce-https false \
--swap-urls '^/ro-crate/:/' \
./_site
- name: Ensure no unexpected encoded HTML in output
working-directory: ./docs
run: |
! fgrep -R 'lt;blockquote' _site
- name: Ensure no unexpected jekyll in output
working-directory: ./docs
run: |
! fgrep -R 'site.pages' _site