-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (46 loc) · 1.19 KB
/
accesibility.yml
File metadata and controls
49 lines (46 loc) · 1.19 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
name: Accessibility checks
on:
pull_request:
branches:
- master
push:
branches:
- feature/*
jobs:
check-accessibility:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
name: Checkout repo
- uses: actions/setup-node@v1
name: Setup node
with:
node-version: "12.x"
- run: npm install pa11y-ci
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-s
- uses: actions/setup-ruby@v1
with:
ruby-version: "2.7"
name: setup Ruby
- name: Install deps
run: |
gem install bundler jekyll
bundle install
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Checks
run: |
bundle exec jekyll build
bundle exec jekyll serve -B & sleep 30
npm run test-pa11y
pkill -f jekyll