lighthouse-ci-action icon indicating copy to clipboard operation
lighthouse-ci-action copied to clipboard

How to set a sub folder as working directory it?

Open FedeMadoery opened this issue 3 years ago • 0 comments

I have the following issue, trying to run the Github Action on a "mono repo". So for example I have:

root/
  | - Client
  |      |- Lighthouse should run here
  | 
  |- Server

So with that folder structure, when I run lighthouse throw the following error...

error Couldn't find a package.json file in "/home/runner/work/***/***"
 Error: LHCI 'collect' has encountered a problem.

And make sense, since the package.json in on "/home/runner/work///client", right now I'm using configPath: ./client/lighthouserc.js' but I wasn't able to fin something like that to say, runPath or workingDirectory.


Any ideas? It's just me using it in a wrong way?

Thanks for you time guys! You did and excellent work with this!

FedeMadoery avatar Sep 09 '21 18:09 FedeMadoery