From 43dfcaacab5f87b093ecf0594bda7142178a81c7 Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Tue, 26 May 2020 15:43:15 +0200 Subject: [PATCH] docs: fix recipes --- README.md | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 0714c1d9b..622cf5129 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,6 @@ jobs: urls: 'https://example.com/' serverBaseUrl: ${{ secrets.LHCI_SERVER_URL }} serverToken: ${{ secrets.LHCI_SERVER_TOKEN }} - uploadArtifacts: false # don't store artifacts as a part of action ``` Lighthouse CI Action: Upload results to a private server @@ -288,26 +287,23 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12.x - - name: Install + - name: Install & Build run: | - yarn - - name: Build - run: | - yarn run build - - name: Waiting for 200 from the Netlify Preview + yarn install + yarn build + - name: Wait for the Netlify Preview uses: jakepartusch/wait-for-netlify-action@v1 - id: waitFor200 + id: netlify with: site_name: 'gallant-panini-bc8593' - name: Audit URLs using Lighthouse uses: treosh/lighthouse-ci-action@v3 with: urls: | - ${{ steps.waitFor200.outputs.url }} - ${{ steps.waitFor200.outputs.url }}/products/ - budgetPath: ./budget.json # test performance budgets - uploadArtifacts: true # save results as an action artifacts - temporaryPublicStorage: true # upload lighthouse report to the temporary storage + ${{ steps.netlify.outputs.url }} + ${{ steps.netlify.outputs.url }}/products/ + budgetPath: ./budget.json + uploadArtifacts: true ``` [⚙️ See this workflow in use](https://github.com/denar90/lightouse-ci-netlify-preact/actions/runs/115659149)