This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathconfig.yml
More file actions
104 lines (94 loc) · 2.72 KB
/
Copy pathconfig.yml
File metadata and controls
104 lines (94 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: 2.1
orbs:
cypress: cypress-io/cypress@3
executors:
currents-executor:
docker:
- image: currentsdev/cypress-included:12.17.4
jobs:
# Use pre-built image with alternative Cypress binary
noorbs currents-image:
parallelism: 3
docker:
- image: currentsdev/cypress-included:12.17.4
steps:
- checkout
- run:
name: Install Dependencies
command: npm ci
- run:
name: Run tests
command: npx cypress-cloud run --parallel --record --key $CURRENTS_RECORD_KEY
# Explicitly download Cypress binary
noorbs explicit-download:
parallelism: 3
docker:
- image: cypress/base:18.16.1
steps:
- checkout
- run:
name: Install dependencies
command: npm ci
- run:
name: Install Cypress
command: CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx cypress install --force
- run:
name: Run tests
command: npx cypress-cloud run --parallel --record --key $CURRENTS_RECORD_KEY
# Use cypress/default executor example
default-executor cypress-install:
executor: cypress/default
steps:
- cypress/install:
post-install: CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx cypress install --force
- persist_to_workspace:
root: ~/
paths:
- .cache/Cypress
- project
default-executor cypress-run:
executor: cypress/default
parallelism: 3
steps:
- attach_workspace:
at: ~/
- cypress/run-tests:
cypress-command: npx cypress-cloud run --parallel --record --key $CURRENTS_RECORD_KEY
# Use currentsdev executor with pre-installed Cypress App binary
custom-executor cypress-install:
executor: currents-executor
steps:
- cypress/install
- persist_to_workspace:
root: ~/
paths:
- project
custom-executor cypress-run:
executor: currents-executor
parallelism: 3
steps:
- attach_workspace:
at: ~/
- cypress/run-tests:
cypress-command: npx cypress-cloud run --parallel --record --key $CURRENTS_RECORD_KEY
workflows:
noorbs:
jobs:
- noorbs currents-image:
context: currents
- noorbs explicit-download:
context: currents
with-orbs default-executor:
jobs:
- default-executor cypress-install
- default-executor cypress-run:
context: currents
requires:
- default-executor cypress-install
with-orbs custom-executor:
jobs:
- custom-executor cypress-install
- custom-executor cypress-run:
context: currents
requires:
- custom-executor cypress-install