1- defaultCypressOrbConfig : &defaultCypressOrbConfig
2- executor : cypress/default
3-
41# https://circleci.com/docs/2.0/configuration-reference/
52version : 2.1
63orbs :
74 # https://github.com/cypress-io/circleci-orb
85 cypress : cypress-io/cypress@3.0.0 # used to run e2e tests
9- win : circleci/windows@2 # run a test job on Windows
6+ win : circleci/windows@5.0.0 # run a test job on Windows
107
118jobs :
129 lint :
2522 - run : npm run check:markdown
2623
2724 install_and_persist :
28- << : *defaultCypressOrbConfig
25+ executor : cypress/default
2926 steps :
3027 - cypress/install
3128 - run :
@@ -42,52 +39,46 @@ jobs:
4239 - .cache/Cypress
4340 - project
4441 root : ~/
45- # windows_test:
46- # executor:
47- # # executor comes from the "windows" orb
48- # name: win/default
49- # shell: bash.exe
50- # steps:
51- # - cypress/run:
52- # # no-workspace: true
53- # start-command: npm run start:windows --prefix test-apps/old-cypress-config/all-files
54- # # wait-on: 'http://localhost:1234'
55- # cypress-command: npx cypress run --project test-apps/old-cypress-config/all-files
56- # # store screenshots and videos
57- # # store_artifacts: true
58- # post-checkout:
59- # - run:
60- # name: Install node 16
61- # command: nvm install 16.16.0
62- # - run:
63- # name: Use node 16
64- # command: nvm use 16.16.0
65- # - run:
66- # name: Install deps for code coverage
67- # command: npm ci
68- # post-install:
69- # - run:
70- # name: Install deps for test-apps/old-cypress-config
71- # command: npm ci
72- # working_directory: test-apps/old-cypress-config
73- # post-steps:
74- # # store the created coverage report folder
75- # # you can click on it in the CircleCI UI
76- # # to see live static HTML site
77- # - store_artifacts:
78- # path: test-apps/old-cypress-config/all-files/coverage
79- # # make sure the examples captures 100% of code
80- # - run:
81- # name: Verify Code Coverage
82- # command: npm run coverage:verify
83- # working_directory: test-apps/old-cypress-config/all-files
84- # - run:
85- # name: Check code coverage files 📈
86- # # we will check the final coverage report
87- # # to make sure it only has files we are interested in
88- # # because there are files covered at 0 in the report
89- # command: npm i -D check-code-coverage && npm run coverage:check-files:windows
90- # working_directory: test-apps/old-cypress-config/all-files
42+
43+ windows_test :
44+ executor :
45+ # executor comes from the "windows" orb
46+ name : win/default
47+ shell : bash.exe
48+ steps :
49+ - checkout
50+ - run :
51+ name : Install node 16
52+ command : nvm install 16.16.0
53+ - run :
54+ name : Use node 16
55+ command : nvm use 16.16.0
56+ - run :
57+ name : Install deps for code coverage
58+ command : npm ci
59+ - run :
60+ name : Install deps for test-apps/old-cypress-config
61+ command : npm ci
62+ working_directory : test-apps/old-cypress-config
63+ - cypress/run-tests :
64+ # no-workspace: true
65+ start-command : npm run start:windows --prefix test-apps/old-cypress-config/all-files
66+ # wait-on: 'http://localhost:1234'
67+ cypress-command : npx cypress run --project test-apps/old-cypress-config/all-files
68+ # store screenshots and videos
69+ # store_artifacts: true
70+ - run :
71+ # make sure the examples captures 100% of code
72+ name : Verify Code Coverage
73+ command : npm run coverage:verify
74+ working_directory : test-apps/old-cypress-config/all-files
75+ - run :
76+ name : Check code coverage files 📈
77+ # we will check the final coverage report
78+ # to make sure it only has files we are interested in
79+ # because there are files covered at 0 in the report
80+ command : npm i -D check-code-coverage && npm run coverage:check-files:windows
81+ working_directory : test-apps/old-cypress-config/all-files
9182
9283 publish :
9384 description : Publishes the new version of the plugin to NPM
@@ -192,89 +183,43 @@ workflows:
192183 - new-cypress-config/ts-example
193184 - new-cypress-config/unit-tests-js
194185 - new-cypress-config/use-webpack
195-
196- # - cypress/run:
197- # name: Windows test
198- # executor:
199- # # executor comes from the "windows" orb
200- # name: win/default
201- # shell: bash.exe
202- # # no-workspace: true
203- # start-command: npm run start:windows --prefix test-apps/old-cypress-config/all-files
204- # # wait-on: 'http://localhost:1234'
205- # cypress-command: npx cypress run --project test-apps/old-cypress-config/all-files
206- # # store screenshots and videos
207- # # store_artifacts: true
208- # post-checkout:
209- # - run:
210- # name: Install node 16
211- # command: nvm install 16.16.0
212- # - run:
213- # name: Use node 16
214- # command: nvm use 16.16.0
215- # - run:
216- # name: Install deps for code coverage
217- # command: npm ci
218- # post-install:
219- # - run:
220- # name: Install deps for test-apps/old-cypress-config
221- # command: npm ci
222- # working_directory: test-apps/old-cypress-config
223- # post-steps:
224- # # store the created coverage report folder
225- # # you can click on it in the CircleCI UI
226- # # to see live static HTML site
227- # - store_artifacts:
228- # path: test-apps/old-cypress-config/all-files/coverage
229- # # make sure the examples captures 100% of code
230- # - run:
231- # name: Verify Code Coverage
232- # command: npm run coverage:verify
233- # working_directory: test-apps/old-cypress-config/all-files
234- # - run:
235- # name: Check code coverage files 📈
236- # # we will check the final coverage report
237- # # to make sure it only has files we are interested in
238- # # because there are files covered at 0 in the report
239- # command: npm i -D check-code-coverage && npm run coverage:check-files:windows
240- # working_directory: test-apps/old-cypress-config/all-files
241-
242- # - publish:
243- # filters:
244- # branches:
245- # only:
246- # - master
247- # - beta
248- # - next
249- # - dev
250- # requires:
251- # - lint
252- # - test-code-coverage-plugin
253- # - test-old-cypress-config/all-files
254- # - test-old-cypress-config/backend
255- # - test-old-cypress-config/before-all-visit
256- # - test-old-cypress-config/before-each-visit
257- # - test-old-cypress-config/exclude-files
258- # - test-old-cypress-config/frontend
259- # - test-old-cypress-config/fullstack
260- # - test-old-cypress-config/one-spec
261- # - test-old-cypress-config/same-folder
262- # - test-old-cypress-config/support-files
263- # - test-old-cypress-config/ts-example
264- # - test-old-cypress-config/unit-tests-js
265- # - test-old-cypress-config/use-webpack
266- # - test-new-cypress-config/all-files
267- # - test-new-cypress-config/backend
268- # - test-new-cypress-config/before-all-visit
269- # - test-new-cypress-config/before-each-visit
270- # - test-new-cypress-config/cra-e2e-and-ct
271- # - test-new-cypress-config/exclude-files
272- # - test-new-cypress-config/frontend
273- # - test-new-cypress-config/fullstack
274- # - test-new-cypress-config/one-spec
275- # - test-new-cypress-config/same-folder
276- # - test-new-cypress-config/support-files
277- # - test-new-cypress-config/ts-example
278- # - test-new-cypress-config/unit-tests-js
279- # - test-new-cypress-config/use-webpack
280- # - Windows test
186+ - windows_test
187+ - publish :
188+ filters :
189+ branches :
190+ only :
191+ - master
192+ - beta
193+ - next
194+ - dev
195+ requires :
196+ - lint
197+ - test-code-coverage-plugin
198+ - test-old-cypress-config/all-files
199+ - test-old-cypress-config/backend
200+ - test-old-cypress-config/before-all-visit
201+ - test-old-cypress-config/before-each-visit
202+ - test-old-cypress-config/exclude-files
203+ - test-old-cypress-config/frontend
204+ - test-old-cypress-config/fullstack
205+ - test-old-cypress-config/one-spec
206+ - test-old-cypress-config/same-folder
207+ - test-old-cypress-config/support-files
208+ - test-old-cypress-config/ts-example
209+ - test-old-cypress-config/unit-tests-js
210+ - test-old-cypress-config/use-webpack
211+ - test-new-cypress-config/all-files
212+ - test-new-cypress-config/backend
213+ - test-new-cypress-config/before-all-visit
214+ - test-new-cypress-config/before-each-visit
215+ - test-new-cypress-config/cra-e2e-and-ct
216+ - test-new-cypress-config/exclude-files
217+ - test-new-cypress-config/frontend
218+ - test-new-cypress-config/fullstack
219+ - test-new-cypress-config/one-spec
220+ - test-new-cypress-config/same-folder
221+ - test-new-cypress-config/support-files
222+ - test-new-cypress-config/ts-example
223+ - test-new-cypress-config/unit-tests-js
224+ - test-new-cypress-config/use-webpack
225+ - windows_test
0 commit comments