1
1
name : CI
2
- on :
2
+ on :
3
3
pull_request :
4
4
types : [opened, synchronize, reopened]
5
5
workflow_dispatch :
6
6
7
- concurrency :
7
+ concurrency :
8
8
group : ${{ github.workflow }}-${{ github.head_ref }}
9
9
cancel-in-progress : true
10
10
43
43
ruby-version : 2.7
44
44
bundler-cache : true
45
45
46
- - name : Setup node 16
46
+ - name : Setup node
47
47
if : steps.verify-dev-changed-files.outputs.any_changed == 'true'
48
48
uses : actions/setup-node@v3
49
49
with :
@@ -108,7 +108,7 @@ jobs:
108
108
ruby-version : 2.7
109
109
bundler-cache : true
110
110
111
- - name : Setup node 16
111
+ - name : Setup node
112
112
uses : actions/setup-node@v3
113
113
if : steps.verify-android-changed-files.outputs.any_changed == 'true'
114
114
with :
@@ -120,7 +120,7 @@ jobs:
120
120
with :
121
121
distribution : ' zulu'
122
122
java-version : 17
123
-
123
+
124
124
- name : Install Gradle dependencies
125
125
if : steps.cache-gradle.outputs.cache-hit != 'true' && steps.verify-android-changed-files.outputs.any_changed == 'true'
126
126
run : |
@@ -129,7 +129,7 @@ jobs:
129
129
130
130
- name : Run unit tests
131
131
if : steps.verify-android-changed-files.outputs.any_changed == 'true'
132
- run : |
132
+ run : |
133
133
cd example/android
134
134
./gradlew test --stacktrace
135
135
@@ -154,7 +154,7 @@ jobs:
154
154
name : Android Test
155
155
strategy :
156
156
matrix :
157
- api-level : [24, 25, 29, 30, 31]
157
+ api-level : [24, 30, 31]
158
158
target : [default]
159
159
steps :
160
160
- name : Checkout the code
@@ -201,7 +201,7 @@ jobs:
201
201
ruby-version : 2.7
202
202
bundler-cache : true
203
203
204
- - name : Setup node 16
204
+ - name : Setup node
205
205
uses : actions/setup-node@v3
206
206
if : steps.verify-android-changed-files.outputs.any_changed == 'true'
207
207
with :
@@ -265,7 +265,7 @@ jobs:
265
265
example/node_modules
266
266
key : ${{ runner.os }}-nodeModules-${{ hashFiles('package.json') }}-${{ hashFiles('example/package.json') }}
267
267
fail-on-cache-miss : true
268
-
268
+
269
269
- name : Cache Pods
270
270
id : cache-pods
271
271
uses : actions/cache@v3
@@ -280,12 +280,12 @@ jobs:
280
280
with :
281
281
ruby-version : 2.7
282
282
bundler-cache : true
283
-
283
+
284
284
- name : Install Cocoapods
285
285
if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
286
286
run : gem install cocoapods -v ${{ matrix.cocoapods }}
287
287
288
- - name : Setup node 16
288
+ - name : Setup node
289
289
if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
290
290
uses : actions/setup-node@v3
291
291
with :
@@ -304,13 +304,13 @@ jobs:
304
304
305
305
- name : Build
306
306
if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
307
- run : |
307
+ run : |
308
308
cd example/ios
309
309
xcodebuild -workspace ImageMarkerExample.xcworkspace -scheme ImageMarkerExample -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' | xcpretty
310
310
311
311
- name : Test
312
312
if : steps.verify-iOS-changed-files.outputs.any_changed == 'true'
313
- run : |
313
+ run : |
314
314
cd example/ios
315
315
xcodebuild -workspace ImageMarkerExample.xcworkspace -scheme ImageMarkerExample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12' test | xcpretty
316
316
0 commit comments