Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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", "marchenko.alexandr@gmail.com");
  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

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages