File tree Expand file tree Collapse file tree 7 files changed +45
-16
lines changed Expand file tree Collapse file tree 7 files changed +45
-16
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,15 @@ jobs:
40
40
- name : Install cocoapods dependencies
41
41
if : steps.cache-pods.outputs.cache-hit != 'true'
42
42
run : bundle exec pod install
43
+
44
+ - name : Build Swift Package
45
+ run : swift build -j 2 --disable-index-store -v
43
46
44
47
- name : Test Framework on iOS and tvOS
45
- run : bundle exec fastlane ios test
48
+ run : bundle exec fastlane ios test ci:github
46
49
47
50
- name : Test Framework on macOS
48
- run : bundle exec fastlane mac test
51
+ run : bundle exec fastlane mac test ci:github
49
52
50
53
- name : Lint podspec
51
54
run : bundle exec pod lib lint
52
-
53
- - name : Build Swift Package
54
- run : swift build -v
55
-
56
- - name : Test Swift Package
57
- run : swift test -v
Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ source "https://rubygems.org"
2
2
3
3
gem "cocoapods" , "1.10.1"
4
4
gem "fastlane" , "~> 2.137"
5
+
6
+ plugins_path = File . join ( File . dirname ( __FILE__ ) , 'fastlane' , 'Pluginfile' )
7
+ eval_gemfile ( plugins_path ) if File . exist? ( plugins_path )
Original file line number Diff line number Diff line change 70
70
cocoapods-try (1.2.0 )
71
71
colored (1.2 )
72
72
colored2 (3.1.2 )
73
+ colorize (0.8.1 )
73
74
commander-fastlane (4.4.6 )
74
75
highline (~> 1.7.2 )
75
76
concurrent-ruby (1.1.8 )
130
131
xcodeproj (>= 1.13.0 , < 2.0.0 )
131
132
xcpretty (~> 0.3.0 )
132
133
xcpretty-travis-formatter (>= 0.0.3 )
134
+ fastlane-plugin-test_center (3.15.3 )
135
+ colorize
136
+ json
137
+ plist
138
+ trainer
139
+ xcodeproj
140
+ xctest_list (>= 1.2.1 )
133
141
ffi (1.15.0 )
134
142
fourflusher (2.3.1 )
135
143
fuzzy_match (2.0.4 )
209
217
terminal-table (1.8.0 )
210
218
unicode-display_width (~> 1.1 , >= 1.1.1 )
211
219
thread_safe (0.3.6 )
220
+ trainer (0.9.1 )
221
+ fastlane (>= 2.25.0 )
222
+ plist (>= 3.1.0 , < 4.0.0 )
212
223
tty-cursor (0.7.1 )
213
224
tty-screen (0.8.1 )
214
225
tty-spinner (0.9.3 )
@@ -233,13 +244,15 @@ GEM
233
244
rouge (~> 2.0.7 )
234
245
xcpretty-travis-formatter (1.0.0 )
235
246
xcpretty (~> 0.2 , >= 0.0.7 )
247
+ xctest_list (1.2.1 )
236
248
237
249
PLATFORMS
238
250
ruby
239
251
240
252
DEPENDENCIES
241
253
cocoapods (= 1.10.1 )
242
254
fastlane (~> 2.137 )
255
+ fastlane-plugin-test_center
243
256
244
257
BUNDLED WITH
245
258
1.17.3
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import SwiftUI
7
7
@available ( macOS 10 . 15 . 0 , * )
8
8
enum TestUtils {
9
9
enum Constants {
10
- static let timeout : TimeInterval = 2
10
+ static let timeout : TimeInterval = 5
11
11
}
12
12
13
13
static func present< ViewType: View > ( view: ViewType ) {
@@ -20,6 +20,7 @@ enum TestUtils {
20
20
window. setFrameAutosaveName ( " Main Window " )
21
21
window. contentView = NSHostingView ( rootView: view)
22
22
window. makeKeyAndOrderFront ( nil )
23
+ window. layoutIfNeeded ( )
23
24
}
24
25
}
25
26
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ enum TestUtils {
28
28
hostingController. beginAppearanceTransition ( true , animated: false )
29
29
window. rootViewController = hostingController
30
30
window. makeKeyAndVisible ( )
31
+ window. layoutIfNeeded ( )
31
32
hostingController. endAppearanceTransition ( )
32
33
}
33
34
}
Original file line number Diff line number Diff line change @@ -2,23 +2,32 @@ default_platform(:ios)
2
2
skip_docs
3
3
4
4
platform :ios do
5
- lane :test do
6
- scan (
5
+ lane :test do |options |
6
+ puts 'Running on GitHub CI.' if options [ :ci ] == 'github'
7
+ multi_scan (
7
8
devices : [ "iPhone 8" ] ,
8
- scheme : "Introspect iOS"
9
+ scheme : "Introspect iOS" ,
10
+ skip_build : options [ :ci ] == 'github' ,
11
+ try_count : 3 ,
12
+ quit_simulators : false
9
13
)
10
14
11
- scan (
15
+ multi_scan (
12
16
devices : [ "Apple TV" ] ,
13
- scheme : "Introspect tvOS"
17
+ scheme : "Introspect tvOS" ,
18
+ skip_build : options [ :ci ] == 'github' ,
19
+ try_count : 3 ,
20
+ quit_simulators : false
14
21
)
15
22
end
16
23
end
17
24
18
25
platform :mac do
19
- lane :test do
26
+ lane :test do |options |
27
+ puts 'Running on GitHub CI.' if options [ :ci ] == 'github'
20
28
scan (
21
- scheme : "Introspect macOS"
29
+ scheme : "Introspect macOS" ,
30
+ skip_build : options [ :ci ] == 'github'
22
31
)
23
32
end
24
33
end
Original file line number Diff line number Diff line change
1
+ # Autogenerated by fastlane
2
+ #
3
+ # Ensure this file is checked in to source control!
4
+
5
+ gem 'fastlane-plugin-test_center'
You can’t perform that action at this time.
0 commit comments