Skip to content

Use node-version-file in Github actions to improve node version setting #2530

Use node-version-file in Github actions to improve node version setting

Use node-version-file in Github actions to improve node version setting #2530

Workflow file for this run

name: Lighthouse CI accessibility checks
on: [pull_request]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
lhci:
name: Lighthouse CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn install
- name: Build pages
run: yarn build
- name: Run Lighthouse CI
run: ./lighthouse/lighthouse.sh
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}