Skip to content

Commit

Permalink
Attempt to run lighthouse on static dir
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-polk committed Nov 2, 2023
1 parent 76d0c55 commit edd56be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ci": {
"collect": {
"staticDistDir": "./build"
}
}
}
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- master
jobs:
lighthouse:
lighthouse-on-live-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -16,5 +16,17 @@ jobs:
https://alpha.bloomlibrary.org/#!/covid19
runs: 3
budgetPath: ./.github/workflows/lighthouse-budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
uploadArtifacts: true # save results as action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
lighthouse-on-static-directory:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
configPath: ./.github/workflows/lighthouserc.json
runs: 3
budgetPath: ./.github/workflows/lighthouse-budget.json # test performance budgets
uploadArtifacts: true # save results as action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

0 comments on commit edd56be

Please sign in to comment.