@@ -3,28 +3,9 @@ version: 2.1
3
3
orbs :
4
4
android :
circleci/[email protected]
5
5
advanced-checkout :
vsco/[email protected]
6
+
6
7
7
8
commands :
8
- install_node_modules :
9
- parameters :
10
- working_directory :
11
- type : string
12
- default : .
13
- steps :
14
- - restore_cache :
15
- name : Restore Yarn Cache
16
- keys :
17
- - v0.2-node-modules-{{ checksum "<< parameters.working_directory >>/yarn.lock" }}
18
- - run :
19
- name : Install Node Modules
20
- working_directory : << parameters.working_directory >>
21
- command : yarn install --frozen-lockfile --cache-folder /tmp/.cache/yarn
22
- - save_cache :
23
- name : Save Yarn Cache
24
- key : v0.2-node-modules-{{ checksum "<< parameters.working_directory >>/yarn.lock" }}
25
- paths :
26
- - /tmp/.cache/yarn
27
-
28
9
install_pods :
29
10
parameters :
30
11
working_directory :
@@ -53,11 +34,12 @@ jobs:
53
34
- run : bundle exec danger
54
35
55
36
lint :
56
- docker :
57
- - image : cimg/ node:16.17.1
37
+ executor :
38
+ name : node/default
58
39
steps :
59
40
- advanced-checkout/shallow-checkout
60
- - install_node_modules
41
+ - node/install-packages :
42
+ pkg-manager : yarn
61
43
- run :
62
44
name : Check Format
63
45
command : yarn format
@@ -66,11 +48,12 @@ jobs:
66
48
command : yarn lint:ci
67
49
68
50
test_module :
69
- docker :
70
- - image : cimg/ node:16.17.1
51
+ executor :
52
+ name : node/default
71
53
steps :
72
54
- advanced-checkout/shallow-checkout
73
- - install_node_modules
55
+ - node/install-packages :
56
+ pkg-manager : yarn
74
57
- run :
75
58
name : Run Tests
76
59
command : yarn test
82
65
working_directory : ~/project/example
83
66
steps :
84
67
- advanced-checkout/shallow-checkout
85
- - run :
86
- name : Install Yarn
87
- command : npm install -g yarn
88
- - install_node_modules
68
+ - node/install-yarn
69
+ - node/install-packages :
70
+ pkg-manager : yarn
89
71
- android/run-tests :
90
72
working-directory : android
91
73
test-command : ./gradlew test -PinstabugUploadEnable=false
@@ -110,9 +92,11 @@ jobs:
110
92
xcode : 13.4.1
111
93
steps :
112
94
- advanced-checkout/shallow-checkout
113
- - install_node_modules
114
- - install_node_modules :
115
- working_directory : example
95
+ - node/install-packages :
96
+ pkg-manager : yarn
97
+ - node/install-packages :
98
+ pkg-manager : yarn
99
+ app-dir : example
116
100
- install_pods :
117
101
working_directory : example/ios
118
102
- run : git --no-pager diff
@@ -126,7 +110,8 @@ jobs:
126
110
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE : true
127
111
steps :
128
112
- advanced-checkout/shallow-checkout
129
- - install_node_modules
113
+ - node/install-packages :
114
+ pkg-manager : yarn
130
115
- install_pods :
131
116
working_directory : ios
132
117
- run :
@@ -166,9 +151,11 @@ jobs:
166
151
- run :
167
152
name : Install Detox Utils
168
153
command : brew tap wix/brew && brew install applesimutils
169
- - install_node_modules
170
- - install_node_modules :
171
- working_directory : example
154
+ - node/install-packages :
155
+ pkg-manager : yarn
156
+ - node/install-packages :
157
+ pkg-manager : yarn
158
+ app-dir : example
172
159
- install_pods :
173
160
working_directory : example/ios
174
161
- run :
@@ -187,15 +174,15 @@ jobs:
187
174
resource-class : large
188
175
steps :
189
176
- advanced-checkout/shallow-checkout
190
- - run :
191
- name : Install Yarn
192
- command : npm install -g yarn
193
177
- run :
194
178
name : Install Detox CLI
195
179
command : npm install -g detox-cli
196
- - install_node_modules
197
- - install_node_modules :
198
- working_directory : example
180
+ - node/install-yarn
181
+ - node/install-packages :
182
+ pkg-manager : yarn
183
+ - node/install-packages :
184
+ pkg-manager : yarn
185
+ app-dir : example
199
186
- android/create-avd :
200
187
avd-name : Nexus_6P_API_27
201
188
install : true
@@ -220,10 +207,21 @@ jobs:
220
207
steps :
221
208
- advanced-checkout/shallow-checkout
222
209
-
run :
git clone [email protected] :Instabug/Escape.git
223
- - run : cd Escape && swift build -c release
224
- - run : cd Escape/.build/release && cp -f Escape /usr/local/bin/escape
225
- - run : cd project && yarn && yarn build
226
- - run : cd project && Escape react-native publish
210
+ - run :
211
+ working_directory : Escape
212
+ command : swift build -c release
213
+ - run :
214
+ working_directory : Escape/.build/release
215
+ command : cp -f Escape /usr/local/bin/escape
216
+ - node/install-packages :
217
+ pkg-manager : yarn
218
+ app-dir : project
219
+ - run :
220
+ working_directory : project
221
+ command : yarn build
222
+ - run :
223
+ working_directory : project
224
+ command : Escape react-native publish
227
225
228
226
workflows :
229
227
publish :
0 commit comments