File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,20 @@ steps:
24
24
- label : " 📦 Build and Test Swift Package ({{matrix}})"
25
25
key : " test"
26
26
command : |
27
- validate_swift_package
27
+ validate_swift_package device:"{{matrix.device}}"
28
28
plugins : [$CI_TOOLKIT]
29
29
env :
30
30
IMAGE_ID : " {{matrix}}"
31
31
matrix :
32
- - $IMAGE_ID
33
- - " xcode-15.1"
32
+ setup :
33
+ image :
34
+ - $IMAGE_ID
35
+ device :
36
+ - " iPhone SE (3rd generation) (17.5)"
37
+ adjustments :
38
+ - with :
39
+ image : " xcode-15.1"
40
+ device : " iPhone SE (3rd generation) (17.2)"
34
41
35
42
# ##################
36
43
# Validate Podspec
Original file line number Diff line number Diff line change 50
50
51
51
platform :ios do
52
52
desc 'Builds the project and runs tests'
53
- lane :test do
53
+ lane :test do |options |
54
+ iphone_device = options [ :device ] ? options [ :device ] . freeze : IPHONE_DEVICE
54
55
run_tests (
55
56
package_path : '.' ,
56
57
scheme : 'Gravatar-Package' ,
57
58
xcargs : COMMON_XCARGS ,
58
- device : IPHONE_DEVICE ,
59
+ device : iphone_device ,
59
60
prelaunch_simulator : true ,
60
61
clean : true ,
61
62
buildlog_path : LOGS_FOLDER ,
You can’t perform that action at this time.
0 commit comments