Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit b0e1cb4

Browse files
committed
run example apps after component tests
1 parent 2bfb833 commit b0e1cb4

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

circle.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ version: 2.1
22
orbs:
33
cypress: cypress-io/cypress@1.26.0
44

5+
# first install all dependencies
6+
# then run component tests
7+
# if the component tests pass, then run the example apps
58
workflows:
69
build:
710
jobs:
@@ -32,7 +35,7 @@ workflows:
3235
- cypress/run:
3336
name: Example A11y
3437
requires:
35-
- Install
38+
- Component Tests
3639
executor: cypress/base-12
3740
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
3841
install-command: npm install --no-bin-links
@@ -45,7 +48,7 @@ workflows:
4548
- cypress/run:
4649
name: Example Babel
4750
requires:
48-
- Install
51+
- Component Tests
4952
executor: cypress/base-12
5053
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
5154
install-command: npm install --no-bin-links
@@ -58,7 +61,7 @@ workflows:
5861
- cypress/run:
5962
name: Example Babel + Typescript
6063
requires:
61-
- Install
64+
- Component Tests
6265
executor: cypress/base-12
6366
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
6467
install-command: npm install --no-bin-links
@@ -71,7 +74,7 @@ workflows:
7174
- cypress/run:
7275
name: Example React Scripts
7376
requires:
74-
- Install
77+
- Component Tests
7578
executor: cypress/base-12
7679
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
7780
install-command: npm install --no-bin-links
@@ -91,7 +94,7 @@ workflows:
9194
- cypress/run:
9295
name: Example Next.js
9396
requires:
94-
- Install
97+
- Component Tests
9598
executor: cypress/base-12
9699
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
97100
install-command: npm install --no-bin-links
@@ -114,7 +117,7 @@ workflows:
114117
name: Example Component Folder
115118
executor: cypress/base-12
116119
requires:
117-
- Install
120+
- Component Tests
118121
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
119122
install-command: npm install --no-bin-links
120123
verify-command: echo 'Already verified'
@@ -133,7 +136,7 @@ workflows:
133136
- cypress/run:
134137
name: Example Tailwind
135138
requires:
136-
- Install
139+
- Component Tests
137140
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
138141
executor: cypress/base-12
139142
install-command: npm install --no-bin-links
@@ -155,7 +158,7 @@ workflows:
155158
- cypress/run:
156159
name: Example Webpack file
157160
requires:
158-
- Install
161+
- Component Tests
159162
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
160163
executor: cypress/base-12
161164
install-command: npm install --no-bin-links
@@ -175,7 +178,7 @@ workflows:
175178
- cypress/run:
176179
name: Example Rollup
177180
requires:
178-
- Install
181+
- Component Tests
179182
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
180183
executor: cypress/base-12
181184
install-command: npm install --no-bin-links
@@ -188,7 +191,7 @@ workflows:
188191
- cypress/run:
189192
name: Example Webpack options
190193
requires:
191-
- Install
194+
- Component Tests
192195
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
193196
executor: cypress/base-12
194197
install-command: npm install --no-bin-links
@@ -208,7 +211,7 @@ workflows:
208211
- cypress/run:
209212
name: Example Sass
210213
requires:
211-
- Install
214+
- Component Tests
212215
# we need the same OS version as in install job
213216
# because we will use native Sass dependency
214217
executor: cypress/base-12
@@ -230,7 +233,7 @@ workflows:
230233
- cypress/run:
231234
name: Example Snapshots
232235
requires:
233-
- Install
236+
- Component Tests
234237
executor: cypress/base-12
235238
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
236239
install-command: npm install --no-bin-links
@@ -244,7 +247,7 @@ workflows:
244247
name: Visual Sudoku
245248
executor: cypress/base-12
246249
requires:
247-
- Install
250+
- Component Tests
248251
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
249252
install-command: npm install --no-bin-links
250253
verify-command: echo 'Already verified'
@@ -260,7 +263,7 @@ workflows:
260263
name: Visual with Applitools
261264
executor: cypress/base-12
262265
requires:
263-
- Install
266+
- Component Tests
264267
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
265268
install-command: npm install --no-bin-links
266269
verify-command: echo 'Already verified'
@@ -282,7 +285,7 @@ workflows:
282285
name: Visual with Percy
283286
executor: cypress/base-12
284287
requires:
285-
- Install
288+
- Component Tests
286289
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
287290
install-command: npm install --no-bin-links
288291
verify-command: echo 'Already verified'
@@ -297,7 +300,7 @@ workflows:
297300
name: Visual with Happo
298301
executor: cypress/base-12
299302
requires:
300-
- Install
303+
- Component Tests
301304
# each example installs "cypress-react-unit-test" as a local dependency (symlink)
302305
install-command: npm install --no-bin-links
303306
verify-command: echo 'Already verified'

0 commit comments

Comments
 (0)