@@ -15,10 +15,12 @@ jobs:
15
15
CYPRESS_INSTALL_BINARY : ' 0'
16
16
steps :
17
17
- attach_workspace :
18
- at : ~/
18
+ at : ~/
19
19
- run :
20
20
name : Code style check 🧹
21
21
command : npm run format:check
22
+ - run : npm run check:markdown
23
+
22
24
publish :
23
25
description : Publishes the new version of the plugin to NPM
24
26
docker :
@@ -32,19 +34,19 @@ jobs:
32
34
CIRCLE_PULL_REQUEST : ' '
33
35
CI_PULL_REQUEST : ' '
34
36
steps :
35
- - checkout
36
- - run : npm ci
37
+ - attach_workspace :
38
+ at : ~/
37
39
- run : npm run semantic-release
38
-
40
+
39
41
cyrun :
40
42
docker :
41
43
- image : cypress/base:16.13.2
42
44
parameters :
43
- jobname :
44
- type : string
45
+ jobname :
46
+ type : string
45
47
steps :
46
48
- attach_workspace :
47
- at : ~/
49
+ at : ~/
48
50
- run :
49
51
command : npm run test
50
52
working_directory : test-apps/<< parameters.jobname >>
67
69
- image : cypress/base:16.13.2
68
70
steps :
69
71
- attach_workspace :
70
- at : ~/
72
+ at : ~/
71
73
- run :
72
74
command : npm run test
73
75
- store_artifacts :
78
80
79
81
workflows :
80
82
build :
81
- jobs :
82
-
83
+ jobs :
83
84
- cypress/install :
84
85
cache-key : ' cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}'
85
86
pre-steps :
@@ -94,23 +95,23 @@ workflows:
94
95
command : npm ci
95
96
working_directory : test-apps/new-cypress-config
96
97
post-steps :
97
- - run : npm run check:markdown
98
+ - run : npm run check:markdown
98
99
99
100
- lint :
100
101
requires :
101
102
- cypress/install
102
103
103
104
- test-code-coverage-plugin :
104
105
requires :
105
- - cypress/install
106
+ - cypress/install
106
107
107
108
- cyrun :
108
109
name : test-<< matrix.jobname>>
109
- requires :
110
+ requires :
110
111
- cypress/install
111
112
matrix :
112
113
parameters :
113
- jobname :
114
+ jobname :
114
115
- old-cypress-config/all-files
115
116
- old-cypress-config/backend
116
117
- old-cypress-config/before-all-visit
@@ -137,62 +138,89 @@ workflows:
137
138
- new-cypress-config/ts-example
138
139
- new-cypress-config/unit-tests-js
139
140
- new-cypress-config/use-webpack
140
-
141
- # - cypress/run:
142
- # name: Windows test
143
- # executor:
144
- # # executor comes from the "windows" orb
145
- # name: win/default
146
- # shell: bash.exe
147
- # no-workspace: true
148
- # start: npm run start:windows --prefix test-apps/old-cypress-config/all-files
149
- # wait-on: 'http://localhost:1234'
150
- # command: ../node_modules/.bin/cypress run
151
- # # store screenshots and videos
152
- # store_artifacts: true
153
- # post-steps:
154
- # - run: cat test-apps/old-cypress-config/all-files/.nyc_output/out.json
155
- # - run: cat test-apps/old-cypress-config/all-files/coverage/coverage-final.json
156
- # # store the created coverage report folder
157
- # # you can click on it in the CircleCI UI
158
- # # to see live static HTML site
159
- # - store_artifacts:
160
- # path: test-apps/old-cypress-config/all-files/coverage
161
- # # make sure the test-apps captures 100% of code
162
- # - run:
163
- # command: npx nyc report --check-coverage true --lines 100
164
- # working_directory: test-apps/old-cypress-config/all-files
165
- # - run:
166
- # name: Check code coverage 📈
167
- # # we will check the final coverage report
168
- # # to make sure it only has files we are interested in
169
- # # because there are files covered at 0 in the report
170
- # command: |
171
- # ../../node_modules/.bin/check-coverage main.js
172
- # ../../node_modules/.bin/check-coverage second.js
173
- # ../../node_modules/.bin/check-coverage not-covered.js
174
- # ../../node_modules/.bin/only-covered --from coverage/coverage-final.json main.js second.js not-covered.js
175
- # working_directory: test-apps/old-cypress-config/all-files
176
141
177
- # - publish:
178
- # filters:
179
- # branches:
180
- # only:
181
- # - master
182
- # - beta
183
- # requires:
184
- # - unit
185
- # - backend coverage
186
- # - fullstack coverage
187
- # - example-before-each-visit
188
- # - example-before-all-visit
189
- # - example-ts-example
190
- # - example-same-folder
191
- # - example-support-files
192
- # - example-use-plugins-and-support
193
- # - example-exclude-files
194
- # - example-docker-paths
195
- # - example-use-webpack
196
- # - example-all-files
197
- # - example-unit-tests-js
198
- # - Windows test
142
+ - cypress/run :
143
+ name : Windows test
144
+ executor :
145
+ # executor comes from the "windows" orb
146
+ name : win/default
147
+ shell : bash.exe
148
+ no-workspace : true
149
+ start : npm run start:windows --prefix test-apps/old-cypress-config/all-files
150
+ wait-on : ' http://localhost:1234'
151
+ command : npx cypress run --project test-apps/old-cypress-config/all-files
152
+ # store screenshots and videos
153
+ store_artifacts : true
154
+ cache-key : ' cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}'
155
+ post-checkout :
156
+ - run :
157
+ name : Install node 16
158
+ command : nvm install 16.13.2
159
+ - run :
160
+ name : Use node 16
161
+ command : nvm use 16.13.2
162
+ - run :
163
+ name : Install deps for code coverage
164
+ command : npm ci
165
+ post-install :
166
+ - run :
167
+ name : Install deps for test-apps/old-cypress-config
168
+ command : npm ci
169
+ working_directory : test-apps/old-cypress-config
170
+ post-steps :
171
+ # store the created coverage report folder
172
+ # you can click on it in the CircleCI UI
173
+ # to see live static HTML site
174
+ - store_artifacts :
175
+ path : test-apps/old-cypress-config/all-files/coverage
176
+ # make sure the examples captures 100% of code
177
+ - run :
178
+ name : Verify Code Coverage
179
+ command : npm run coverage:verify
180
+ working_directory : test-apps/old-cypress-config/all-files
181
+ - run :
182
+ name : Check code coverage files 📈
183
+ # we will check the final coverage report
184
+ # to make sure it only has files we are interested in
185
+ # because there are files covered at 0 in the report
186
+ command : npm i -D check-code-coverage && npm run coverage:check-files:windows
187
+ working_directory : test-apps/old-cypress-config/all-files
188
+
189
+ - publish :
190
+ filters :
191
+ branches :
192
+ only :
193
+ - master
194
+ - beta
195
+ - next
196
+ - dev
197
+ requires :
198
+ - lint
199
+ - test-code-coverage-plugin
200
+ - test-old-cypress-config/all-files
201
+ - test-old-cypress-config/backend
202
+ - test-old-cypress-config/before-all-visit
203
+ - test-old-cypress-config/before-each-visit
204
+ - test-old-cypress-config/exclude-files
205
+ - test-old-cypress-config/frontend
206
+ - test-old-cypress-config/fullstack
207
+ - test-old-cypress-config/one-spec
208
+ - test-old-cypress-config/same-folder
209
+ - test-old-cypress-config/support-files
210
+ - test-old-cypress-config/ts-example
211
+ - test-old-cypress-config/unit-tests-js
212
+ - test-old-cypress-config/use-webpack
213
+ - test-new-cypress-config/all-files
214
+ - test-new-cypress-config/backend
215
+ - test-new-cypress-config/before-all-visit
216
+ - test-new-cypress-config/before-each-visit
217
+ - test-new-cypress-config/exclude-files
218
+ - test-new-cypress-config/frontend
219
+ - test-new-cypress-config/fullstack
220
+ - test-new-cypress-config/one-spec
221
+ - test-new-cypress-config/same-folder
222
+ - test-new-cypress-config/support-files
223
+ - test-new-cypress-config/ts-example
224
+ - test-new-cypress-config/unit-tests-js
225
+ - test-new-cypress-config/use-webpack
226
+ - Windows test
0 commit comments