Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created June 16, 2021 19:34
Show Gist options
  • Save planetoftheweb/601a266cb5b850fabc4db5259bd39636 to your computer and use it in GitHub Desktop.
Save planetoftheweb/601a266cb5b850fabc4db5259bd39636 to your computer and use it in GitHub Desktop.
name: Generate Lighthouse Report
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Get Report
run: |
npm install -g lighthouse
lighthouse https://raybo.org/githubchallenge/ --chrome-flags="--headless" --output="json" --output-path="./report.json"
cat ./report.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment