Skip to content

Commit a32e445

Browse files
feat: Update node defaults (#438)
* update node defaults * update node version * update default node version
1 parent 22ecb1d commit a32e445

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.circleci/test-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ filters: &filters
88

99
jobs:
1010
install-and-persist:
11-
executor: cypress/default
11+
executor:
12+
name: cypress/default
13+
node-version: "20.6.0"
1214
steps:
1315
- cypress/install:
1416
working-directory: examples/angular-app

src/examples/node-version.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
description: >
2+
Run Cypress tests using the cypress/default executor with a specified node version.
3+
usage:
4+
version: 2.1
5+
orbs:
6+
cypress: cypress-io/cypress@3
7+
jobs:
8+
run-cypress-in-specified-node-version:
9+
executor:
10+
name: cypress/default
11+
node-version: "20.6"
12+
steps:
13+
- cypress/install:
14+
package-manager: "yarn"
15+
- cypress/run-tests:
16+
start-command: "npm run start:dev"
17+
cypress-command: "npx cypress run"
18+
workflows:
19+
use-my-orb:
20+
jobs:
21+
- run-cypress-in-specified-node-version:
22+
name: Run Cypress in Node 20

src/executors/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >
33
parameters:
44
node-version:
55
type: string
6-
default: "16.16"
6+
default: "18.16.1"
77
description: >
88
The version of Node to run your tests with.
99
docker:

0 commit comments

Comments
 (0)