From 9e7aa0346b3d8de2dd86e51ff07c91e5b29d17d0 Mon Sep 17 00:00:00 2001 From: Conlin Durbin Date: Mon, 26 Apr 2021 23:01:32 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=EF=B8=8F=20Adds=20accessibility=20act?= =?UTF-8?q?ion=20(#253)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add lighthouse run * Add lighthouse run * Update lighthouse configuration * Remove extra lighthouse files * Update lighthouserc.js * Update lighthouserc.js * Update lighthouserc.js Co-authored-by: Tatiana Mac --- .github/workflows/a11y.yml | 22 ++++++++++++++++++++++ lighthouserc.js | 16 ++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/a11y.yml create mode 100644 lighthouserc.js 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" + } + } + }, +};