Skip to content
/ lhci Public

lighthouse ci docker image with puppeteer preinstalled

Notifications You must be signed in to change notification settings

rabotaua/lhci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lighthouse CI

Docker image with puppeteer preinstalled

Original can be found here

Original docs can be found here

Usage example

docker run -it --rm  --cap-add=SYS_ADMIN -v $PWD:/data -w /data rabotaua/lhci lhci collect --numberOfRuns=1 --url="https://m.robota.ua/"

Auth

script.js

module.exports = async (browser, context) => {
  const page = await browser.newPage();
  await page.goto("https://m.robota.ua/account/login");
  await page.type("#email", "[email protected]");
  await page.type("#password", "*************");
  await page.click('input[type="submit"]');
  await page.waitForNavigation();
};
docker run -it --rm  --cap-add=SYS_ADMIN -v $PWD:/data -w /data rabotaua/lhci lhci collect --numberOfRuns=1 --url="https://m.robota.ua/notepad/cvlist" --puppeteerScript="script.js"

Reports

ls -la .lighthouseci
open .lighthouseci/lhr-*.html

About

lighthouse ci docker image with puppeteer preinstalled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published