cypress-io / circleci-orb

Install, cache and run Cypress.io tests on CircleCI with minimal configuration.
https://circleci.com/orbs/registry/orb/cypress-io/cypress
MIT License
159 stars 101 forks source link

Wrong node version #423

Closed tech247gb closed 1 year ago

tech247gb commented 1 year ago

The orb does not work as expected

Still its chosing 16 as node version.

version: 2.1 orbs: cypress: cypress-io/cypress@3 executors: default: docker:

nagash77 commented 1 year ago

Hi @tech247gb , You will need to provide more information and details about what you are expecting and how you are encountering this problem.

tech247gb commented 1 year ago

I am expecting npm install happen with node version 14.17.6. But its happening with 16 @nagash77

jordanpowell88 commented 1 year ago

Hey @tech247gb I see where the confusion is. If you are using the Cypress Default Executor with no parameters, it will install using the default value of 16.16.

  executor: cypress/default

You can either bypass it by not using the Cypress Default Executor or you can change the node version using the node-version parameter for the executor like this:

  executor: cypress/default:
      node-version: 14.17.6
LeviHeberRI commented 11 months ago

@jordanpowell88 cypress/run does not accept an executor argument, so it is also not possible to change the node version.

jordanpowell88 commented 11 months ago

@jordanpowell88 cypress/run does not accept an executor argument, so it is also not possible to change the node version.

You are correct. You need to specify a different executor than the default being used by the cypress/run job. See this comment on how to implement https://github.com/cypress-io/circleci-orb/issues/423#issuecomment-1515217741

csaszika commented 3 months ago

@jordanpowell88 cypress/run does not accept an executor argument