-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: verify that lighthouse could do local test
- Loading branch information
1 parent
0854730
commit 5f4a2ee
Showing
1 changed file
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|