14
14
uses : actions/checkout@v4
15
15
16
16
- name : Verify Dev Changed files
17
- uses : tj-actions/verify- changed-files@v16.1.1
17
+ uses : tj-actions/changed-files@v40
18
18
id : verify-dev-changed-files
19
19
with :
20
20
files : |
@@ -25,28 +25,28 @@ jobs:
25
25
- uses : actions/cache@v3
26
26
name : Cache node_modules
27
27
id : cache-node-modules
28
- if : steps.verify-dev-changed-files.outputs.files_changed == 'true'
28
+ if : steps.verify-dev-changed-files.outputs.any_changed == 'true'
29
29
with :
30
30
path : |
31
31
node_modules
32
32
example/node_modules
33
33
key : ${{ runner.os }}-nodeModules-${{ hashFiles('package.json') }}-${{ hashFiles('example/package.json') }}
34
34
35
35
- name : Set up Ruby
36
- if : steps.verify-dev-changed-files.outputs.files_changed == 'true'
36
+ if : steps.verify-dev-changed-files.outputs.any_changed == 'true'
37
37
uses : ruby/setup-ruby@v1
38
38
with :
39
39
ruby-version : 2.7
40
40
bundler-cache : true
41
41
42
42
- name : Setup node 16
43
- if : steps.verify-dev-changed-files.outputs.files_changed == 'true'
43
+ if : steps.verify-dev-changed-files.outputs.any_changed == 'true'
44
44
uses : actions/setup-node@v3
45
45
with :
46
46
node-version : ' 16'
47
47
48
48
- name : Install npm dependencies
49
- if : steps.cache-node-modules.outputs.cache-hit != 'true' && steps.verify-dev-changed-files.outputs.files_changed == 'true'
49
+ if : steps.cache-node-modules.outputs.cache-hit != 'true' && steps.verify-dev-changed-files.outputs.any_changed == 'true'
50
50
run : |
51
51
ls
52
52
pwd
65
65
uses : actions/checkout@v4
66
66
67
67
- name : Verify Android Changed files
68
- uses : tj-actions/verify- changed-files@v16.1.1
68
+ uses : tj-actions/changed-files@v40
69
69
id : verify-android-changed-files
70
70
with :
71
71
files : |
77
77
78
78
- uses : actions/cache@v3
79
79
name : Cache node_modules
80
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
80
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
81
81
id : cache-node-modules
82
82
with :
83
83
path : |
89
89
- uses : actions/cache@v3
90
90
id : cache-gradle
91
91
name : Cache Gradle dependencies
92
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
92
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
93
93
with :
94
94
path : |
95
95
~/.gradle/caches
@@ -98,46 +98,46 @@ jobs:
98
98
99
99
- name : Set up Ruby
100
100
uses : ruby/setup-ruby@v1
101
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
101
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
102
102
with :
103
103
ruby-version : 2.7
104
104
bundler-cache : true
105
105
106
106
- name : Setup node 16
107
107
uses : actions/setup-node@v3
108
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
108
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
109
109
with :
110
110
node-version : ' 16'
111
111
112
112
- name : Set up JDK
113
113
uses : actions/setup-java@v3
114
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
114
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
115
115
with :
116
116
distribution : ' zulu'
117
117
java-version : 11
118
118
119
119
- name : Install Gradle dependencies
120
- if : steps.cache-gradle.outputs.cache-hit != 'true' && steps.verify-android-changed-files.outputs.files_changed == 'true'
120
+ if : steps.cache-gradle.outputs.cache-hit != 'true' && steps.verify-android-changed-files.outputs.any_changed == 'true'
121
121
run : |
122
122
cd example/android
123
123
./gradlew build --stacktrace
124
124
125
125
- name : Run unit tests
126
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
126
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
127
127
run : |
128
128
cd example/android
129
129
./gradlew test --stacktrace
130
130
131
131
- name : Build APK
132
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
132
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
133
133
run : |
134
134
npm run prepack
135
135
cd example/android
136
136
./gradlew assembleRelease
137
137
mv app/build/outputs/apk/release/app-release.apk app-release-${{ github.sha }}.apk
138
138
139
139
- name : Upload APK
140
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
140
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
141
141
uses : actions/upload-artifact@v3
142
142
with :
143
143
name : app-release-${{ github.sha }}.apk
@@ -156,7 +156,7 @@ jobs:
156
156
uses : actions/checkout@v4
157
157
158
158
- name : Verify Android Changed files
159
- uses : tj-actions/verify- changed-files@v16.1.1
159
+ uses : tj-actions/changed-files@v40
160
160
id : verify-android-changed-files
161
161
with :
162
162
files : |
@@ -168,7 +168,7 @@ jobs:
168
168
169
169
- uses : actions/cache@v3
170
170
name : Cache node_modules
171
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
171
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
172
172
id : cache-node-modules
173
173
with :
174
174
path : |
@@ -179,7 +179,7 @@ jobs:
179
179
180
180
- uses : actions/cache@v3
181
181
name : Cache Gradle dependencies
182
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
182
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
183
183
id : cache-gradle
184
184
with :
185
185
path : |
@@ -190,27 +190,27 @@ jobs:
190
190
191
191
- name : Set up Ruby
192
192
uses : ruby/setup-ruby@v1
193
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
193
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
194
194
with :
195
195
ruby-version : 2.7
196
196
bundler-cache : true
197
197
198
198
- name : Setup node 16
199
199
uses : actions/setup-node@v3
200
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
200
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
201
201
with :
202
202
node-version : ' 16'
203
203
204
204
- name : Set up JDK
205
205
uses : actions/setup-java@v3
206
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
206
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
207
207
with :
208
208
distribution : ' zulu'
209
209
java-version : 11
210
210
211
211
- name : Instrumentation Tests
212
212
uses : reactivecircus/android-emulator-runner@v2
213
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
213
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
214
214
with :
215
215
api-level : ${{ matrix.api-level }}
216
216
target : ${{ matrix.target }}
@@ -221,7 +221,7 @@ jobs:
221
221
222
222
- name : Upload Reports
223
223
uses : actions/upload-artifact@v3
224
- if : steps.verify-android-changed-files.outputs.files_changed == 'true'
224
+ if : steps.verify-android-changed-files.outputs.any_changed == 'true'
225
225
with :
226
226
name : Test-Reports
227
227
path : ${{ github.workspace }}/example/android/app/build/reports
@@ -238,7 +238,7 @@ jobs:
238
238
uses : actions/checkout@v4
239
239
240
240
- name : Verify iOS Changed files
241
- uses : tj-actions/verify- changed-files@v16.1.1
241
+ uses : tj-actions/changed-files@v40
242
242
id : verify-iOS-changed-files
243
243
with :
244
244
files : |
@@ -251,7 +251,7 @@ jobs:
251
251
- uses : actions/cache@v3
252
252
name : Cache node_modules
253
253
id : cache-node-modules
254
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
254
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
255
255
with :
256
256
path : |
257
257
node_modules
@@ -262,47 +262,47 @@ jobs:
262
262
- name : Cache Pods
263
263
id : cache-pods
264
264
uses : actions/cache@v3
265
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
265
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
266
266
with :
267
267
path : example/ios/Pods
268
268
key : ${{ runner.os }}-pods-${{ matrix.cocoapods }}-${{ hashFiles('**/Podfile.lock') }}
269
269
270
270
- name : Set up Ruby
271
271
uses : ruby/setup-ruby@v1
272
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
272
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
273
273
with :
274
274
ruby-version : 2.7
275
275
bundler-cache : true
276
276
277
277
- name : Install Cocoapods
278
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
278
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
279
279
run : gem install cocoapods -v ${{ matrix.cocoapods }}
280
280
281
281
- name : Setup node 16
282
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
282
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
283
283
uses : actions/setup-node@v3
284
284
with :
285
285
node-version : ' 16'
286
286
287
287
- name : Install Pods
288
- if : steps.cache-pods.outputs.cache-hit != 'true' && steps.verify-iOS-changed-files.outputs.files_changed == 'true'
288
+ if : steps.cache-pods.outputs.cache-hit != 'true' && steps.verify-iOS-changed-files.outputs.any_changed == 'true'
289
289
run : |
290
290
cd example/ios
291
291
pod cache clean --all
292
292
pod install
293
293
294
294
- name : Install xcpretty
295
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
295
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
296
296
run : gem install xcpretty
297
297
298
298
- name : Build
299
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
299
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
300
300
run : |
301
301
cd example/ios
302
302
xcodebuild -workspace ImageMarkerExample.xcworkspace -scheme ImageMarkerExample -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' | xcpretty
303
303
304
304
- name : Test
305
- if : steps.verify-iOS-changed-files.outputs.files_changed == 'true'
305
+ if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
306
306
run : |
307
307
cd example/ios
308
308
xcodebuild -workspace ImageMarkerExample.xcworkspace -scheme ImageMarkerExample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' test | xcpretty
0 commit comments