diff --git a/.github/workflows/a11y.yml b/.github/workflows/a11y.yml new file mode 100644 index 00000000..a5cd89e9 --- /dev/null +++ b/.github/workflows/a11y.yml @@ -0,0 +1,22 @@ +name: Accessibility Audit + +on: [push, pull_request] + +jobs: + lhci: + name: Lighthouse + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 10.x + uses: actions/setup-node@v1 + with: + node-version: 10.x + - name: npm install, build + run: | + npm install + npm run build + - name: run Lighthouse CI + run: | + npm install -g @lhci/cli@0.4.x + lhci autorun diff --git a/lighthouserc.js b/lighthouserc.js new file mode 100644 index 00000000..748fd228 --- /dev/null +++ b/lighthouserc.js @@ -0,0 +1,16 @@ +module.exports = { + ci: { + upload: { + target: 'temporary-public-storage', + }, + assert: { + preset: "lighthouse:no-pwa", + assertions: { + "font-display": "off", + "uses-rel-preconnect": "off", + "render-blocking-resources": "off", + "uses-long-cache-ttl": "off" + } + } + }, +};