Giter Club home page Giter Club logo

Comments (2)

Lezzio avatar Lezzio commented on June 8, 2024 1

Thank you very much for the detailed answer! It seems to do the job 👍

from github-action.

MikeMcC399 avatar MikeMcC399 commented on June 8, 2024

@Lezzio

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:

      - name: Install Dependencies
        run: pnpm install

Use of

command: pnpm cypress run

is problematic, as described in Custom test command

Caution: using the action parameter command causes multiple other parameters to be ignored including: auto-cancel-after-failures, browser, ci-build-id, command-prefix, component, config, config-file, env, group, headed, parallel, project, publish-summary, quiet, record, spec and tag.

You can probably just delete this line, as the action's default mode is runTests: true.

from github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.