File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -44,3 +44,37 @@ Url of a site deploy related to the commit.
4444
4545I was inspiered by https://github.com/JakePartusch/wait-for-netlify-action .
4646Hence this repo is a fork and keeps track of commits history for that action, but bringing new API and workflow.
47+
48+ ## Recipes
49+
50+ ### Recipe using with Lighthouse CI GitHub Action
51+
52+ ``` yml
53+ name : Lighthouse CI for Netlify sites
54+ on :
55+ [push, pull_request]
56+ jobs :
57+ build :
58+ runs-on : ubuntu-latest
59+ steps :
60+ - uses : actions/checkout@v2
61+ - name : Use Node.js 12.x
62+ uses : actions/setup-node@v1
63+ with :
64+ node-version : 12.x
65+ - name : Waiting for the Netlify
66+ uses : denar90/wait-for-netlify-action@master
67+ id : waitForNetlify
68+ with :
69+ site_id : " 12771bc4-662a-4b33-bcf0-cba7a803b3ee"
70+ - name : Audit URLs using Lighthouse
71+ uses : treosh/lighthouse-ci-action@v3
72+ with :
73+ urls : |
74+ ${{ steps.waitForNetlify.outputs.url }}
75+ ${{ steps.waitForNetlify.outputs.url }}/blogs/
76+ ${{ steps.waitForNetlify.outputs.url }}/contact/
77+ budgetPath : ./budget.json # test performance budgets
78+ uploadArtifacts : true # save results as an action artifacts
79+ temporaryPublicStorage : true # upload lighthouse report to the temporary storage
80+ ` ` `
You can’t perform that action at this time.
0 commit comments