improve accessibility to support more/less buttons #858
Workflow file for this run
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: Lighthouse | |
on: pull_request | |
jobs: | |
lighthouse-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
bundler-cache: true | |
- name: Cache npm local files | |
uses: actions/[email protected] | |
with: | |
path: | | |
./node_modules | |
key: npm-${{matrix.node}}-${{ hashFiles('yarn.lock', 'package.json') }} | |
- name: Install node modules | |
run: npm install | |
- name: Setup site | |
run: | | |
npm run setup | |
- name: Serve site | |
run: bundle exec jekyll serve & | |
- name: Lighthouse CI Action | |
uses: treosh/lighthouse-ci-action@v10 | |
with: | |
urls: | | |
$SITE_URL/ | |
uploadArtifacts: true | |
configPath: ./lighthouse/lighthouserc.yml | |
runs: 1 | |
env: | |
SITE_URL: http://localhost:4000 |