@@ -3,6 +3,7 @@ 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
9
install_pods :
@@ -33,13 +34,12 @@ jobs:
33
34
- run : bundle exec danger
34
35
35
36
lint :
36
- docker :
37
- - image : cimg/ node:16.17.1
37
+ executor :
38
+ name : node/default
38
39
steps :
39
40
- advanced-checkout/shallow-checkout
40
- - run :
41
- name : Install Node Packages
42
- command : yarn
41
+ - node/install-packages :
42
+ pkg-manager : yarn
43
43
- run :
44
44
name : Check Format
45
45
command : yarn format
@@ -48,13 +48,12 @@ jobs:
48
48
command : yarn lint:ci
49
49
50
50
test_module :
51
- docker :
52
- - image : cimg/ node:16.17.1
51
+ executor :
52
+ name : node/default
53
53
steps :
54
54
- advanced-checkout/shallow-checkout
55
- - run :
56
- name : Install Node Packages
57
- command : yarn
55
+ - node/install-packages :
56
+ pkg-manager : yarn
58
57
- run :
59
58
name : Run Tests
60
59
command : yarn test
@@ -63,17 +62,14 @@ jobs:
63
62
executor :
64
63
name : android/android-machine
65
64
tag : ' 2022.03.1'
65
+ working_directory : ~/project/example
66
66
steps :
67
67
- advanced-checkout/shallow-checkout
68
- - run :
69
- name : Install Yarn
70
- command : npm install -g yarn
71
- - run :
72
- name : Install Node Packages
73
- working_directory : example
74
- command : yarn
68
+ - node/install-yarn
69
+ - node/install-packages :
70
+ pkg-manager : yarn
75
71
- android/run-tests :
76
- working-directory : ./example/ android
72
+ working-directory : android
77
73
test-command : ./gradlew test -PinstabugUploadEnable=false
78
74
79
75
validate_shell_files :
96
92
xcode : 13.4.1
97
93
steps :
98
94
- advanced-checkout/shallow-checkout
99
- - run : yarn
100
- - run : cd example && yarn
95
+ - node/install-packages :
96
+ pkg-manager : yarn
97
+ - node/install-packages :
98
+ pkg-manager : yarn
99
+ app-dir : example
101
100
- install_pods :
102
101
working_directory : example/ios
103
102
- run : git --no-pager diff
@@ -111,9 +110,8 @@ jobs:
111
110
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE : true
112
111
steps :
113
112
- advanced-checkout/shallow-checkout
114
- - run :
115
- name : Install node_modules
116
- command : yarn
113
+ - node/install-packages :
114
+ pkg-manager : yarn
117
115
- install_pods :
118
116
working_directory : ios
119
117
- run :
@@ -147,21 +145,23 @@ jobs:
147
145
INSTABUG_SOURCEMAPS_UPLOAD_DISABLE : true
148
146
steps :
149
147
- advanced-checkout/shallow-checkout
148
+ - node/install-packages :
149
+ pkg-manager : yarn
150
+ - node/install-packages :
151
+ pkg-manager : yarn
152
+ app-dir : example
153
+ - install_pods :
154
+ working_directory : example/ios
150
155
- run :
151
156
name : Install Detox CLI
152
157
command : npm install -g detox-cli
153
158
- run :
154
159
name : Install Detox Utils
155
160
command : brew tap wix/brew && brew install applesimutils
156
161
- run :
157
- name : Install Node Packages
158
- command : yarn
159
- - run :
160
- name : Install Example's Node Packages
162
+ name : Rebuild Detox.framework Cache
161
163
working_directory : example
162
- command : yarn
163
- - install_pods :
164
- working_directory : example/ios
164
+ command : detox clean-framework-cache && detox build-framework-cache
165
165
- run :
166
166
name : Detox - Build Release App
167
167
working_directory : example
@@ -178,19 +178,15 @@ jobs:
178
178
resource-class : large
179
179
steps :
180
180
- advanced-checkout/shallow-checkout
181
- - run :
182
- name : Install Yarn
183
- command : npm install -g yarn
181
+ - node/install-yarn
182
+ - node/install-packages :
183
+ pkg-manager : yarn
184
+ - node/install-packages :
185
+ pkg-manager : yarn
186
+ app-dir : example
184
187
- run :
185
188
name : Install Detox CLI
186
189
command : npm install -g detox-cli
187
- - run :
188
- name : Install Node Packages
189
- command : yarn
190
- - run :
191
- name : Install Example's Node Packages
192
- working_directory : example
193
- command : yarn
194
190
- android/create-avd :
195
191
avd-name : Nexus_6P_API_27
196
192
install : true
@@ -215,10 +211,21 @@ jobs:
215
211
steps :
216
212
- advanced-checkout/shallow-checkout
217
213
-
run :
git clone [email protected] :Instabug/Escape.git
218
- - run : cd Escape && swift build -c release
219
- - run : cd Escape/.build/release && cp -f Escape /usr/local/bin/escape
220
- - run : cd project && yarn && yarn build
221
- - run : cd project && Escape react-native publish
214
+ - run :
215
+ working_directory : Escape
216
+ command : swift build -c release
217
+ - run :
218
+ working_directory : Escape/.build/release
219
+ command : cp -f Escape /usr/local/bin/escape
220
+ - node/install-packages :
221
+ pkg-manager : yarn
222
+ app-dir : project
223
+ - run :
224
+ working_directory : project
225
+ command : yarn build
226
+ - run :
227
+ working_directory : project
228
+ command : Escape react-native publish
222
229
223
230
workflows :
224
231
publish :
0 commit comments