Skip to content

feat: node 20

feat: node 20 #281

Workflow file for this run

name: Lighthouse Check
on: [pull_request]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '20.x'
- run: npm install
- run: npm run build
- name: Unit tests
run: npm run test
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js --verbose --prCommentEnabled \
--emulatedFormFactor "all" \
--urls "https://www.foo.software,https://www.foo.software/about" \
--prCommentAccessToken "${{ secrets.GITHUB_TOKEN }}" \
--prCommentUrl "https://api.github.com/repos/foo-software/lighthouse-check/pulls/$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')/reviews"