-
Notifications
You must be signed in to change notification settings - Fork 78
54 lines (51 loc) · 1.76 KB
/
ci.yml
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
name: CI
on: [pull_request]
jobs:
build:
runs-on: macos-13 # macos-latest does not ship with Xcode 15
name: Run UI Test on iOS
env:
xcode_version: "15.2"
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@v3
- name: Install required tools
run: |
brew update
brew install xcodegen
- name: Generate projects;
run: |
cd Example; xcodegen
cd SPM; xcodegen
- name: Build App
run: |
Scripts/run_build.rb Example/SBTUITestTunnel.xcworkspace
- name: Run UI Tests
run: |
Scripts/run_uitests.rb Example/SBTUITestTunnel.xcworkspace
- name: Collect UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_Tests_iOS.xcresult
path: SBTUITestTunnel_Tests.xcresult
if: success() || failure()
- name: Run no swizzling UI Tests
run: |
Scripts/run_uitests_no_swizzling.rb Example/SBTUITestTunnel.xcworkspace
- name: Collect no swizzling UI Tests artifacts
uses: actions/upload-artifact@v3
with:
name: SBTUITestTunnel_TestsNoSwizzling_iOS.xcresult
path: SBTUITestTunnel_TestsNoSwizzling.xcresult
if: success() || failure()
- name: Build SPM App
run: |
Scripts/run_build.rb Example/SPM/SBTUITestTunnel.xcodeproj
- name: Run SPM UI Tests
run: |
Scripts/run_uitests.rb Example/SPM/SBTUITestTunnel.xcodeproj