File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,17 @@ workflows:
65
65
working-directory : examples/npm-install
66
66
cypress-cache-key : cypress-cache-{{ arch }}-{{ checksum "examples/npm-install/package.json" }}
67
67
post-install : " npm run say-hello && npm run say-goodbye"
68
+ - cypress/run :
69
+ filters : *filters
70
+ name : Custom Node Version Example
71
+ working-directory : examples/npm-install
72
+ cypress-cache-key : cypress-cache-{{ arch }}-{{ checksum "examples/npm-install/package.json" }}
73
+ node-version : " 20.15.1"
74
+ post-install : |
75
+ if ! node --version | grep -q "20.15.1"; then
76
+ echo "Node version 20.15.1 not found"
77
+ exit 1
78
+ fi
68
79
- cypress/run :
69
80
filters : *filters
70
81
name : Yarn Example
@@ -130,6 +141,7 @@ workflows:
130
141
requires :
131
142
- orb-tools/pack
132
143
- Standard Npm Example
144
+ - Custom Node Version Example
133
145
- Yarn Example
134
146
- Custom Install Example
135
147
- Wait On Example
Original file line number Diff line number Diff line change 11
11
node-version : " 20.6"
12
12
steps :
13
13
- cypress/install :
14
- package-manager : " yarn "
14
+ package-manager : " npm "
15
15
- cypress/run-tests :
16
16
start-command : " npm run start:dev"
17
17
cypress-command : " npx cypress run"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: >
3
3
parameters :
4
4
node-version :
5
5
type : string
6
- default : " 18.16.1"
6
+ default : " 18.16.1" # keep in sync with jobs/run.yml
7
7
description : >
8
8
The version of Node to run your tests with.
9
9
docker :
Original file line number Diff line number Diff line change 1
1
description : >
2
2
A single, complete job to run Cypress end-to-end tests in your application.
3
- # What will this job do?
4
- executor : default
3
+
4
+ executor :
5
+ name : default
6
+ node-version : << parameters.node-version >>
5
7
6
8
parallelism : << parameters.parallelism >>
7
9
@@ -66,6 +68,11 @@ parameters:
66
68
description : |
67
69
Number of Circle machines to use for load balancing, min 1
68
70
(requires `parallel` and `record` flags in your `cypress-command`)
71
+ node-version :
72
+ type : string
73
+ default : " 18.16.1" # keep in sync with executors/default.yml
74
+ description : >
75
+ The version of Node to run your tests with.
69
76
70
77
steps :
71
78
- install :
You can’t perform that action at this time.
0 commit comments