✨
Help-a-Family Manual
  • Help a Family Docs
  • Info for Charities
  • Info for API Users
  • Tutorial
  • Contentful
  • Environment Variables
    • Lighthouse CI
  • Troubleshooting
  • Contributing to Help-a-Family
    • Fork and Clone the Repo
    • MHF Javascript/React Style Guide
    • MHF CSS Guide
    • Contributor Power Tips
Powered by GitBook
On this page
  • Target Audience: Other Nonprofit Organizations
  • Getting a Lighthouse CI GitHub App Token

Was this helpful?

  1. Environment Variables

Lighthouse CI

Optional setup for people deploying their own instance of Help-a-Family to their org

PreviousEnvironment VariablesNextTroubleshooting

Last updated 3 years ago

Was this helpful?

Lighthouse is a tool for testing page speed and performance. We use it with a GitHub action to performance-test pull requests.

Target Audience: Other Nonprofit Organizations

This info is only for those who are deploying a production instance of Help-a-Family.

It's not necessary for most developers contributing to Help-a-Family to follow these instructions.

Getting a Lighthouse CI GitHub App Token

When setting up this project for your GitHub organization, you'll need to add LHCI_GITHUB_APP_TOKEN to the project's Settings on GitHub.

First, generate your token by installing the Lighthouse CI app:

Install Lighthouse CI to only the helpafamily repo for your org:

Copy-paste the LHCI_GITHUB_APP_TOKEN to your .env file so you don't lose it:

Add the new repo secret:

Paste your secret in:

Your secret should now show up:

https://github.com/apps/lighthouse-ci
Click the "Configure" button
Only select the helpafamily repo
Copy the token from here
Click "New repository secret"
Paste it and click "Add secret"
See it under "Repository secrets"