2024 update - WIP #501
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |