All Projects β†’ hchiam β†’ learning-lighthouse-ci

hchiam / learning-lighthouse-ci

Licence: MIT license
Learning Google's Lighthouse CI from scratch with a minimal template web app (quickstart)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to learning-lighthouse-ci

Lighthousebot
Run Lighthouse in CI, as a web service, using Docker. Pass/Fail GH pull requests.
Stars: ✭ 2,251 (+4793.48%)
Mutual labels:  ci, travis, lighthouse
Danger
🚫 Stop saying "you forgot to …" in code review (in Ruby)
Stars: ✭ 4,691 (+10097.83%)
Mutual labels:  ci, travis
Danger Js
⚠️ Stop saying "you forgot to …" in code review
Stars: ✭ 4,076 (+8760.87%)
Mutual labels:  ci, travis
Lint Diff
πŸ’… Run eslint only in the changed parts of the code
Stars: ✭ 92 (+100%)
Mutual labels:  ci, travis
ionic-travis
Ionic app demo built with Travis CI
Stars: ✭ 15 (-67.39%)
Mutual labels:  ci, travis
Lighthouse Action
πŸ’‘πŸ  GitHub Action for running @GoogleChromeLabs Lighthouse webpage audits
Stars: ✭ 263 (+471.74%)
Mutual labels:  ci, lighthouse
Lightkeeper
Run Lighthouse tests in Pull Requests for multiple URLs with custom budgets
Stars: ✭ 83 (+80.43%)
Mutual labels:  ci, lighthouse
Lighthouse Badges
🚦Generate badges (shields.io) based on Lighthouse performance.
Stars: ✭ 150 (+226.09%)
Mutual labels:  travis, lighthouse
Ci Detector
Detect continuous integration environment and get information of current build
Stars: ✭ 138 (+200%)
Mutual labels:  ci, travis
Cistern
A terminal UI for Unix to monitor Continuous Integration pipelines from the command line. Current integrations include GitLab, Azure DevOps, Travis CI, AppVeyor and CircleCI.
Stars: ✭ 161 (+250%)
Mutual labels:  ci, travis
Env Ci
Get environment variables exposed by CI services
Stars: ✭ 180 (+291.3%)
Mutual labels:  ci, travis
github-status-updater
Command line utility for updating GitHub commit statuses and enabling required status checks for pull requests
Stars: ✭ 83 (+80.43%)
Mutual labels:  ci, travis
lighthouse-circleci-example
An example repo demonstrating Lighthouse testing in CircleCi
Stars: ✭ 21 (-54.35%)
Mutual labels:  ci, lighthouse
Travis Watch
Stream live travis test results of the current commit to your terminal!
Stars: ✭ 294 (+539.13%)
Mutual labels:  ci, travis
egg-ci
Auto gen ci config file
Stars: ✭ 15 (-67.39%)
Mutual labels:  ci, travis
Automatic Release
Automates the release process for GitHub projects.
Stars: ✭ 46 (+0%)
Mutual labels:  ci, travis
Trytravis
Send local git changes to Travis CI without commits or pushes.
Stars: ✭ 131 (+184.78%)
Mutual labels:  ci, travis
Lighthouse Ci
A useful wrapper around Google Lighthouse CLI
Stars: ✭ 198 (+330.43%)
Mutual labels:  ci, lighthouse
prebuild-ci
Use CI to auto upload prebuilds
Stars: ✭ 17 (-63.04%)
Mutual labels:  ci, travis
testing
Testing in Go
Stars: ✭ 30 (-34.78%)
Mutual labels:  ci

Learning Lighthouse CI from scratch (quickstart)

version

Just one of the things I'm learning. https://github.com/hchiam/learning

Have Lighthouse CI tool run with Travis for every commit or PR to a web app project hosted on GitHub.

Results upon commit

Build Status

Automated test run info here: https://travis-ci.org/hchiam/learning-lighthouse-ci/builds (or click on the badge above). Update: Since June 15th, 2021, building on travis-ci.org "ceased", so you should use travis-ci.com from now on. Some of the old .org links have stopped working, so here's the .com builds page: https://app.travis-ci.com/github/hchiam/learning-lighthouse-ci/builds Also, you may want to use free GitHub Actions instead.

Example PR here (click "View details"): #1 (comment)

Setup steps (if you git clone this repo)

  1. To test the web app locally:

    npm install
    npm start

    and in a separate CLI tab:

    npm run build
    npm install -g @lhci/[email protected]
    lhci autorun
  2. To test the web app upon commit/PR:

Setup steps (if you're starting from an empty folder)

  1. For lhci autorun to work, you need a web app set up that has things like a dist or public folder, etc. To do that, you can run a one-liner command to set up a React app:

    # cd to desktop or containing folder
    create-react-app my-app
  2. To make sure it's working locally:

    cd my-app
    npm start

    and in another CLI tab:

    cd my-app
    npm install -g @lhci/[email protected]
    lhci autorun
  3. The key is setting up the Travis file .travis.yml:

    language: node_js
    node_js:
      - 10
    before_install:
      - npm install -g @lhci/[email protected]
    script:
      - npm run build
      - lhci autorun
    addons:
      chrome: stable

Aside

If you want to see a report with more details (e.g. vulnerable libraries -> which specific ones), use a different CLI tool: run lighthouse locally:

npm install -g lighthouse
lighthouse https://airhorner.com/
# lighthouse <url>

Then open the generated html file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].