forked from Q42/lighthouse-plugin-sample-project
-
Notifications
You must be signed in to change notification settings - Fork 0
21 lines (21 loc) · 857 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Lighthouse Audit
on: push
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1 # checkout this repo, so you can run an 'npm install'
- run: npm install
- name: Audit URLs using Lighthouse
uses: connorjclark/lighthouse-ci-action@master
# env:
# NODE_PATH: /home/runner/work/lighthouse-plugin-sample-project/lighthouse-plugin-sample-project/node_modules:/home/runner/work/_actions/connorjclark/lighthouse-ci-action/master/node_modules
with:
urls: |
https://lighthouse-plugin-sample-project.glitch.me/
configPath: ./lighthouserc.json
- name: Save results
uses: actions/upload-artifact@v1
with:
name: lighthouse-results
path: '.lighthouseci' # This will save the Lighthouse results as .json files