-
-
Notifications
You must be signed in to change notification settings - Fork 89
29 lines (29 loc) · 899 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
27
28
29
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: "3.0"
- 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 \
--allow-hash-href \
--allow_missing_href \
--ignore-empty-alt \
--ignore-status-codes 405,429,503,999 \
--ignore-urls "/.*localhost.*/","/.*gitter\.im.*/" \
--enforce-https=false \
--disable-external \
--check-internal-hash \
./_site