Update faq.md #146
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 a11y test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-a11y: | |
runs-on: ubuntu-latest | |
steps: | |
# setup | |
- uses: actions/checkout@v3 | |
- run: echo "NODE_VERSION=$(cat '.nvmrc')" >> ${GITHUB_ENV} | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
# build site | |
- name: build site | |
run: bundle exec jekyll build | |
# test a11y | |
- name: test a11y | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
run: | | |
npm install -g @lhci/[email protected] | |
lhci autorun |