generated from cloud-gov/pages-uswds-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.06 KB
/
build-and-test.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
38
39
40
41
42
43
44
45
46
name: Build and test Jekyll USWDS
on: [push]
jobs:
build:
name: Install, build and test site with pa11y-ci and htmlproofer.
runs-on: ubuntu-20.04
env:
LANG: en_US.UTF-8
LANGUAGE: en_US
LC_ALL: en_US.UTF-8
steps:
- name: Checkout source.
uses: actions/checkout@v2
- name: Setup ruby env.
run: |
sudo apt-get update;
sudo apt-get install --reinstall -y locales;
sudo sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen;
sudo locale-gen en_US.UTF-8;
- name: Install ruby.
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Install node.js.
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install NPM dependencies.
run: npm install
- name: Start up jekyll server.
run: npm run start-detached
- name: Run pa11y-ci.
run: npm run pa11y-ci:sitemap
- name: Run htmlproofer.
run: npm run htmlproofer