You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a NX monorepo with pnpm as a package manager and I wish to use Cypress cloud with this GitHub action integration to trigger the tests on chosen apps.
I have a folder apps which contains all our web applications, I try to run Cypress as such in a workflow:
However, I am getting the following error: Error: Action failed. Missing package manager lockfile. Expecting one of package-lock.json (npm), pnpm-lock.yaml (pnpm) or yarn.lock (yarn) in working-directory /home/runner/work/hcpportal-front-web/hcpportal-front-web/apps/campus
How can we make it work and compatible with monorepos ? The package manager lockfile is only at the root of the monorepo and not in each of its application. Would it be possible to configure the location of the package manager lockfile ?
The text was updated successfully, but these errors were encountered:
The package manager lockfile is only at the root of the monorepo and not in each of its application. Would it be possible to configure the location of the package manager lockfile ?
Since the action install parameter is set to true (which is also the default setting), the action looks for a lockfile in the working directory and fails if none is found.
You may be able to use the project parameter instead of the working-directory parameter to point to ./apps/campus. That would work if your directory structure corresponds to the project example on https://github.com/cypress-io/cypress-test-nested-projects (which is unfortunately a legacy version example, but the principle is the same with current versions).
In that case, you would then want to remove the following instructions, because github-action would carry out the installation based on your pnpm-lock.yaml file in the root directory:
Hi,
I'm running a NX monorepo with pnpm as a package manager and I wish to use Cypress cloud with this GitHub action integration to trigger the tests on chosen apps.
I have a folder apps which contains all our web applications, I try to run Cypress as such in a workflow:
However, I am getting the following error:
Error: Action failed. Missing package manager lockfile. Expecting one of package-lock.json (npm), pnpm-lock.yaml (pnpm) or yarn.lock (yarn) in working-directory /home/runner/work/hcpportal-front-web/hcpportal-front-web/apps/campus
Which is expected given the code:
#848
How can we make it work and compatible with monorepos ? The package manager lockfile is only at the root of the monorepo and not in each of its application. Would it be possible to configure the location of the package manager lockfile ?
The text was updated successfully, but these errors were encountered: