From e3714b318cc0bd91c00a87523827805e35cb22da Mon Sep 17 00:00:00 2001 From: William Zujkowski Date: Tue, 31 Mar 2026 20:19:53 -0400 Subject: [PATCH] chore(ci): add Lighthouse audit to deploy workflow (#124) Runs Lighthouse on landing page + title browse page after each deploy. Reports accessibility, best practices, and SEO scores. Non-blocking (won't fail deploys, just reports). Uses temporary public storage for report viewing. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/deploy-site.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index d6db146..9529b71 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -79,3 +79,21 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 + + lighthouse: + needs: deploy + runs-on: ubuntu-latest + steps: + - name: Lighthouse audit + uses: treosh/lighthouse-ci-action@2f8dda6cf4de7d73b29853c3f29e73a01e297bd8 # v12.1.0 + with: + urls: | + https://civic-source.github.io/us-code-tracker/ + https://civic-source.github.io/us-code-tracker/browse/title-18/ + budgetPath: '' + temporaryPublicStorage: true + - name: Report scores + if: always() + run: | + echo "## Lighthouse Scores" >> "$GITHUB_STEP_SUMMARY" + echo "Audit completed after deploy. Check artifacts for full report." >> "$GITHUB_STEP_SUMMARY"