Skip to content

Merge pull request #556 from BloomBooks/BL13272_StaffControls #81

Merge pull request #556 from BloomBooks/BL13272_StaffControls

Merge pull request #556 from BloomBooks/BL13272_StaffControls #81

Workflow file for this run

name: Lighthouse CI
on:
push:
branches:
- master
jobs:
lighthouse-on-live-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Audit root using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
https://alpha.bloomlibrary.org
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
# We have to run this separately with a separate budget file because the redirect causes
# lighthouse to think we are running at the root
- name: Audit /covid19 using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
https://alpha.bloomlibrary.org/covid19
runs: 3
budgetPath: ./.github/workflows/lighthouse-budget-covid19-page.json # test performance budgets
uploadArtifacts: true # save results as action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
# This static directory test doesn't work (at least) because we don't build the site in the action.
# If we implemented it (and it worked...), it would have the advantage of immediate results instead
# of always being one deploy behind like the live site test.
# 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