Skip to content

Instantly share code, notes, and snippets.

@adamhenson
Created November 9, 2019 19:07
Show Gist options
  • Save adamhenson/90ecc651b2eec1032f074be80f3dc022 to your computer and use it in GitHub Desktop.
Save adamhenson/90ecc651b2eec1032f074be80f3dc022 to your computer and use it in GitHub Desktop.
Basic example GitHub Action workflow using Lighthouse Check Action
name: Lighthouse Check
on: [pull_request]
jobs:
lighthouse-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: mkdir /tmp/artifacts
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
with:
outputDirectory: /tmp/artifacts
urls: 'https://www.foo.software,https://www.foo.software/contact'
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment