-
Notifications
You must be signed in to change notification settings - Fork 85
96 lines (91 loc) · 3.38 KB
/
Copy pathci.yml
File metadata and controls
96 lines (91 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: CI
on: [pull_request, workflow_dispatch]
env:
xcode_version: "16.4"
jobs:
uikit-tests:
runs-on: macos-15
name: UIKit Tests
timeout-minutes: 30
steps:
- name: List Xcode installations
run: sudo ls -1 /Applications | grep "Xcode"
- name: Select Xcode version ${{ env.xcode_version }}
run: |
sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer
- name: Checkout
uses: actions/checkout@v4
- name: Install required tools
run: |
brew update
brew install xcodegen
- name: Generate UIKit project
run: |
cd Examples/UIKit
xcodegen generate
if [ $? -ne 0 ]; then echo "XcodeGen failed" && exit 1; fi
pod install --verbose
if [ $? -ne 0 ]; then echo "Pod install failed" && exit 1; fi
- name: Build UIKit App
run: |
Scripts/build_app.rb Examples/UIKit/SBTUITestTunnel_UIKit.xcworkspace UIKit
- name: Build UIKit UI Tests
run: |
Scripts/build_uitests.rb Examples/UIKit/SBTUITestTunnel_UIKit.xcworkspace UIKit
- name: Run UIKit UI Tests
run: |
Scripts/run_uitests.rb Examples/UIKit/SBTUITestTunnel_UIKit.xcworkspace UIKit
- name: Collect UI Tests artifacts
uses: actions/upload-artifact@v4
with:
name: SBTUITestTunnel_UIKit_Tests.xcresult
path: UIKit.xcresult
if: success() || failure()
- name: Build UIKit No Swizzling UI Tests
run: |
Scripts/build_uitests.rb Examples/UIKit/SBTUITestTunnel_UIKit.xcworkspace UIKit_NoSwizzlingTests
- name: Run UIKit No Swizzling UI Tests
run: |
Scripts/run_uitests.rb Examples/UIKit/SBTUITestTunnel_UIKit.xcworkspace UIKit_NoSwizzlingTests
- name: Collect no swizzling UI Tests artifacts
uses: actions/upload-artifact@v4
with:
name: SBTUITestTunnel_UIKit_NoSwizzling.xcresult
path: UIKit_NoSwizzlingTests.xcresult
if: success() || failure()
swiftui-tests:
runs-on: macos-15
name: SwiftUI Tests
timeout-minutes: 30
steps:
- name: List Xcode installations
run: sudo ls -1 /Applications | grep "Xcode"
- name: Select Xcode version ${{ env.xcode_version }}
run: |
sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer
- name: Checkout
uses: actions/checkout@v4
- name: Install required tools
run: |
brew update
brew install xcodegen
- name: Generate SwiftUI project
run: |
cd Examples/SwiftUI
xcodegen generate
if [ $? -ne 0 ]; then echo "XcodeGen failed" && exit 1; fi
- name: Build SwiftUI App
run: |
Scripts/build_app.rb Examples/SwiftUI/SBTUITestTunnel_SwiftUI.xcodeproj SwiftUI
- name: Build SwiftUI UI Tests
run: |
Scripts/build_uitests.rb Examples/SwiftUI/SBTUITestTunnel_SwiftUI.xcodeproj SwiftUI
- name: Run SwiftUI UI Tests
run: |
Scripts/run_uitests.rb Examples/SwiftUI/SBTUITestTunnel_SwiftUI.xcodeproj SwiftUI
- name: Collect SwiftUI UI Tests artifacts
uses: actions/upload-artifact@v4
with:
name: SBTUITestTunnel_SwiftUI_Tests.xcresult
path: SwiftUI.xcresult
if: success() || failure()