forked from open-life-science/open-life-science.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 788 Bytes
/
ci.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
name: Linting for push and PR
on: [push, pull_request]
jobs:
check-internal-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Build website
run: bundle exec jekyll build --strict_front_matter
- name: Validate HTML and check links
run: |
bundle exec htmlproofer \
--assume-extension \
--http-status-ignore 405,429,503,999 \
--url-ignore "/.*localhost.*/","/.*gitter\.im.*/" \
--allow-hash-href \
--empty_alt_ignore \
--disable-external \
./_site