treosh / lighthouse-ci-action

Audit URLs using Lighthouse and test performance with Lighthouse CI.
MIT License
1.15k stars 82 forks source link

How to set a sub folder as working directory it? #90

Open FedeMadoery opened 2 years ago

FedeMadoery commented 2 years ago

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!