-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (28 loc) · 1021 Bytes
/
html-proofer.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
name: html-proofer tests
on: [pull_request, workflow_dispatch]
jobs:
build:
name: Building site and running html-proofer tests
runs-on: ubuntu-latest
steps:
- name: Checkout source.
uses: actions/checkout@v2
- name: Install jekyll site dependencies.
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
bundler-cache: true
- uses: c-hive/gha-npm-cache@v1
- name: Install proofer dependencies.
run: npm install
- name: Compile with gulp
run: gulp build
- name: Start up jekyll server.
run: npm run start-detached
- name: Check HTML
uses: chabad360/htmlproofer@master
with:
directory: "./_site"
# The directory to scan
arguments: --ignore-status-codes 0 --ignore-urls "/community.amstat.org/,/fhwa.dot.gov/,/www.cyberseek.org/,/www.clustermapping.us/,/www.bls.gov\/cew/,/bit.ly\,/splashthat.com/"
# The arguments to pass to HTMLProofer