-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs for running with a specified node-version doesn't show how to change node version #468
Comments
The contents of https://circleci.com/developer/orbs/orb/cypress-io/cypress#usage-node-version (which you posted above) differ from https://github.com/cypress-io/circleci-orb/blob/master/src/examples/node-version.yml which contains: description: >
Run Cypress tests using the cypress/default executor with a specified node version.
usage:
version: 2.1
orbs:
cypress: cypress-io/cypress@3
jobs:
run-cypress-in-specified-node-version:
executor:
name: cypress/default
node-version: "20.6"
steps:
- cypress/install:
package-manager: "yarn"
- cypress/run-tests:
start-command: "npm run start:dev"
cypress-command: "npx cypress run"
workflows:
use-my-orb:
jobs:
- run-cypress-in-specified-node-version:
name: Run Cypress in Node 20 I guess the two different text portions should be aligned. It seems strange to define |
Yah I'm not sure what's happened with the generated docs on the orb website. There's some usages of node-version in the repo itself: https://github.com/search?q=repo%3Acypress-io%2Fcircleci-orb%20node-version&type=code I have no idea why that node-version file has mixed package managers either. Probably just an oversight when we last rewrote the orb. |
Are the docs supposed to be published automatically or is that a manual job to update them? The
command cypress/run-testsTo resolve this issue (#468), the example text from dealing with how to set node-version together with the command cypress/run-tests needs to be corrected and then published to job cypress/runIf there is an example for use together with the job cypress/run, then that should be added. If it is not possible to select a different Node.js version for use with the job cypress/run, then that should be explicitly stated in the documentation. |
@MikeMcC399 I feel like the actual orb doc updates if you release a new version. I don't recall ever updating the docs independently so I'm not sure if that's possible. Seems like it should be possible though. |
I can't be of much assistance here as this part of interacting with CircleCI is only practical with Cypress.io access privileges. I have to leave it to your team to sort out. If things aren't working the way they should, then you may need to involve CircleCI support. |
description: >
Run Cypress tests using the cypress/default executor with a specified node version.
usage:
version: 2.1
orbs:
cypress: cypress-io/cypress@3
jobs:
run-cypress-in-specified-node-version:
executor:
name: cypress/default
node-version: "20.6"
steps:
- cypress/install:
package-manager: "npm"
- cypress/run-tests:
start-command: "npm run start:dev"
cypress-command: "npx cypress run"
workflows:
use-my-orb:
jobs:
- run-cypress-in-specified-node-version:
name: Run Cypress in Node 20
|
Ah, pretty annoying. I feel like this might have happened before. 🤔 |
Yes, it has happened before. The publish log works silently giving no helpful details:
|
I think it might be an indentation problem, drafting a PR |
This should address cypress-io#468
|
@MikeMcC399 |
|
If you want to cut a new orb release the node documentation has a good chance of being correctly published now: Preview on https://circleci.com/developer/orbs/orb/cypress-io/cypress?version=dev:b3455e432dad1a6db0f19889495ebcf62577fa3d#usage-node-version shows: Current version cypress-io/[email protected] is unusable: |
Tried to release this, but the job is failing: #492 (comment) |
|
|
CircleCI workflow log for failed
shows the node documentation correctly published https://circleci.com/developer/orbs/orb/cypress-io/cypress?version=dev:98eca619c68c9db6fcff36aa1c92701265a5e76c#usage-node-version . The blocker is the incorrect pnpm implementation. version: '2.1'
orbs:
cypress: cypress-io/cypress@3
jobs:
run-cypress-in-specified-node-version:
executor:
name: cypress/default
node-version: '20.6'
steps:
- cypress/install:
package-manager: npm
- cypress/run-tests:
cypress-command: npx cypress run
start-command: npm run start:dev
workflows:
use-my-orb:
jobs:
- run-cypress-in-specified-node-version:
name: Run Cypress in Node 20 |
https://circleci.com/developer/orbs/orb/cypress-io/cypress#usage-node-version now displays: version: '2.1'
orbs:
cypress: cypress-io/cypress@3
jobs:
run-cypress-in-specified-node-version:
executor:
name: cypress/default
node-version: '20.6'
steps:
- cypress/install:
package-manager: npm
- cypress/run-tests:
cypress-command: npx cypress run
start-command: npm run start:dev
workflows:
use-my-orb:
jobs:
- run-cypress-in-specified-node-version:
name: Run Cypress in Node 20 This issue is now resolved! |
The docs here: https://circleci.com/developer/orbs/orb/cypress-io/cypress#usage-node-version, says this is the way to change the node version for the orb:
But node version isn't specified anywhere here
The text was updated successfully, but these errors were encountered: