2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00
Files
bootstrap/.github/workflows/docs.yml
T
XhmikosR 1884e36dce Add pa11y-ci for accessibility testing.
Use pa11y-ci-reporter-html and also upload the HTML results to CI if there are any failures
2021-12-03 11:02:44 +02:00

50 lines
952 B
YAML

name: Docs
on:
push:
branches-ignore:
- "dependabot/**"
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
NODE: 16
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
cache: npm
- run: java -version
- name: Install npm dependencies
run: npm ci
- name: Test docs
run: npm run docs
- name: Run accessibility tests
run: npm run docs-accessibility
- name: Generate HTML accessibility results
run: npm run docs-pa11y-html
if: failure()
- name: Upload accessibility results
uses: actions/upload-artifact@v2
if: failure()
with:
name: pa11y-ci-results
path: pa11y-ci-report/
if-no-files-found: error