Skip to content

Commit

Permalink
fix: verify that lighthouse could do local test
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin committed May 8, 2020
1 parent 0854730 commit 5f4a2ee
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,28 @@ jobs:
with:
site_name: "happy-franklin-69b6d4"

#runs the lighthouse
- name: Lighthouse CI Action
uses: treosh/lighthouse-ci-action@v2
with:
urls: |
$DEPLOY_URL
budgetPath: '.github/lighthouse/budget.json' # test performance budgets
configPath: '.github/lighthouse/lighthouserc.json'
# Path to a LHCI lighthouserc.json file
# Opt-out of saving Lighthouse results as an action artifacts
uploadArtifacts: false
# Number of runs to do per URL
serverBaseUrl: ${{ secrets.LHCI_SERVER_URL }}
serverToken: ${{ secrets.LHCI_SERVER_TOKEN }}
# lighthouse local test
- name: Lighthouse CI
run: |
npm install -g @lhci/[email protected]
lhci autorun
env:
DEPLOY_URL: ${{ steps.waitFor200.outputs.url }}
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}

#runs the lighthouse action
# - name: Lighthouse CI Action
# uses: treosh/lighthouse-ci-action@v2
# with:
# urls: |
# $DEPLOY_URL
# budgetPath: '.github/lighthouse/budget.json' # test performance budgets
# configPath: '.github/lighthouse/lighthouserc.json'
# # Path to a LHCI lighthouserc.json file
# # Opt-out of saving Lighthouse results as an action artifacts
# uploadArtifacts: false
# # Number of runs to do per URL
# serverBaseUrl: ${{ secrets.LHCI_SERVER_URL }}
# serverToken: ${{ secrets.LHCI_SERVER_TOKEN }}
# env:
# DEPLOY_URL: ${{ steps.waitFor200.outputs.url }}

0 comments on commit 5f4a2ee

Please sign in to comment.