-
Notifications
You must be signed in to change notification settings - Fork 20
43 lines (36 loc) · 1.18 KB
/
pa11y.yaml
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
name: pa11y tests
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
name: Building site and running pa11y-ci tests
runs-on: ubuntu-latest
steps:
# Clone the repository and checkout into the relevant branch
- uses: actions/[email protected]
# Install Ruby
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Check https://pages.github.com/versions/ for the current Ruby version used by gh pages.
# Install dependencies required to run jekyll build
- name: Install gh-pages rubygem via bundler
run: |
# Update gem and bundler
gem update --system --no-document
gem update bundler --no-document
# Set the bundle directory
bundle config set path vendor/bundle
# Install Gemfile contents via bundler
bundle install
# Install pa11y requirements
- name: Install pa11y-ci
run: npm install -g pa11y-ci
# Check site accesibility
- name: Serve site and test with pa11y
run: |
bundle exec jekyll serve --detach
pa11y-ci http://localhost:4000/