Skip to content

Production Checks

Production Checks #180

######################################
## Custom Http Archive GitHub action ##
######################################
#
# Run checks against the production website
#
name: Production Checks
on:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '45 13 * * 0'
workflow_dispatch:
jobs:
checks:
runs-on: ubuntu-20.04
if: github.repository == 'HTTPArchive/httparchive.org'
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Set the list of URLs for Lighthouse to check
run: ./tools/scripts/set_lighthouse_urls.sh -p
- name: Audit URLs using Lighthouse
uses: treosh/[email protected]
id: LHCIAction
with:
# For prod, we simply check for 100% in Accessibility, Best Practices and SEO
# We don't check Performance as too much variability and no guarantees on perf in GitHub Actions.
configPath: .github/lighthouse/lighthouse-config-prod.json
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
- name: Show Lighthouse outputs
run: |
# All results by URL:
echo '${{ steps.LHCIAction.outputs.manifest }}' | jq -r '.[] | (.summary|tostring) + " - " + .url'