File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,14 @@ workflows:
120
120
cypress-cache-key : cypress-cache-{{ arch }}-{{ checksum "examples/angular-app/package.json" }}
121
121
cypress-command : " npx cypress run --component --parallel --record"
122
122
parallelism : 3
123
+ - cypress/run :
124
+ filters : *filters
125
+ name : Verify skip-checkout
126
+ working-directory : examples/angular-app
127
+ cypress-cache-key : cypress-cache-{{ arch }}-{{ checksum "examples/angular-app/package.json" }}
128
+ cypress-command : " npx cypress run --component --parallel --record"
129
+ pre-steps :
130
+ - checkout
123
131
- install-and-persist :
124
132
filters : *filters
125
133
name : Install & Persist
@@ -159,6 +167,7 @@ workflows:
159
167
- Run CT Tests in Chrome
160
168
- Run CT Tests in Firefox
161
169
- Run CT Tests in Edge
170
+ - Verify skip-checkout
162
171
context : circleci-orb-publishing
163
172
filters :
164
173
branches :
Original file line number Diff line number Diff line change @@ -48,9 +48,16 @@ parameters:
48
48
enum : ["npm", "yarn", "yarn-berry", "pnpm"]
49
49
default : " npm"
50
50
description : Select the default node package manager to use. NPM v5+ Required.
51
+ skip-checkout :
52
+ type : boolean
53
+ default : false
54
+ description : Allow skipping the `checkout` command
51
55
52
56
steps :
53
- - checkout
57
+ - unless :
58
+ condition : << parameters.skip-checkout >>
59
+ steps :
60
+ - checkout
54
61
- when :
55
62
condition : << parameters.install-browsers >>
56
63
steps :
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ parameters:
73
73
default : " 18.16.1" # keep in sync with executors/default.yml
74
74
description : >
75
75
The version of Node to run your tests with.
76
+ skip-checkout :
77
+ type : boolean
78
+ default : false
79
+ description : Whether to skip code checkout
76
80
77
81
steps :
78
82
- install :
85
89
package-manager : << parameters.package-manager >>
86
90
include-branch-in-node-cache-key : << parameters.include-branch-in-node-cache-key >>
87
91
install-browsers : << parameters.install-browsers >>
92
+ skip-checkout : << parameters.skip-checkout >>
88
93
- run-tests :
89
94
working-directory : << parameters.working-directory >>
90
95
start-command : << parameters.start-command >>
You can’t perform that action at this time.
0 commit comments