77
88jobs :
99 unittests :
10- runs-on : macos-13
10+ runs-on : macos-15
1111 strategy :
1212 fail-fast : false
1313 matrix :
@@ -16,43 +16,42 @@ jobs:
1616 # - each xcode version has own simulator os versions.
1717 # - so to run tests with the target simulator, we have to find a proper xcode version pre-installed and support the target simulator os version.
1818 # also, the xcode version (simulator_xcode_version) and simulator os versions (os) are moving target. We have to change these time to time.
19- # - see "https://github.com/actions/runner-images/blob/main/images/macos/macos-11 -Readme.md" for installed macOS, xcode and simulator versions.
19+ # - see "https://github.com/actions/runner-images/blob/main/images/macos/macos-15 -Readme.md" for installed macOS, xcode and simulator versions.
2020 include :
21- - os : 16.1
22- device : " iPhone 14 "
21+ - os : 18.4
22+ device : " iPhone 16 "
2323 scheme : " OptimizelySwiftSDK-iOS"
2424 test_sdk : " iphonesimulator"
2525 platform : " iOS Simulator"
2626 os_type : " iOS"
27- simulator_xcode_version : 14.1
28- - os : 16.2
29- device : " iPhone 14 "
27+ simulator_xcode_version : 16.3
28+ - os : 18.5
29+ device : " iPhone 16 Plus "
3030 scheme : " OptimizelySwiftSDK-iOS"
3131 test_sdk : " iphonesimulator"
3232 platform : " iOS Simulator"
3333 os_type : " iOS"
34- simulator_xcode_version : 14.2
35- - os : 16.4
36- # good to have tests with older OS versions, but it looks like this is min OS+xcode versions supported by github actions
37- device : " iPad Air (5th generation)"
34+ simulator_xcode_version : 16.4
35+ - os : 18.6
36+ device : " iPad Air 11-inch (M2)"
3837 scheme : " OptimizelySwiftSDK-iOS"
3938 test_sdk : " iphonesimulator"
4039 platform : " iOS Simulator"
4140 os_type : " iOS"
42- simulator_xcode_version : 14.3.1
43- - os : 16.1
41+ simulator_xcode_version : 16.4
42+ - os : 18.5
4443 device : " Apple TV"
4544 scheme : " OptimizelySwiftSDK-tvOS"
4645 test_sdk : " appletvsimulator"
4746 platform : " tvOS Simulator"
4847 os_type : " tvOS"
49- simulator_xcode_version : 14.1
48+ simulator_xcode_version : 16.4
5049 steps :
5150 - uses : actions/checkout@v3
5251 - uses : maxim-lobanov/setup-xcode@v1
5352 with :
5453 # macos version and supported simulator_xcode_versions are all related to this xcode_version, so be careful when you upgrade this.
55- xcode-version : 14.1
54+ xcode-version : 16.4
5655 - name : set SDK Branch if PR
5756 env :
5857 BASE_REF : ${{ github.base_ref }}
@@ -98,11 +97,11 @@ jobs:
9897 with :
9998 name : build-logs-${{ matrix.device }}-${{ matrix.os }}
10099 path : build/Logs
101- - # - report coverage for PR and iPhone 11 only (avoid redundant ones)
102- # - use Xcode12.4 + (older Xcode reports a wrong number)
100+ - # - report coverage for PR and iPhone 16 only (avoid redundant ones)
101+ # - use Xcode16 + (older Xcode reports a wrong number)
103102 name : Check on success
104103 id : coveralls
105- if : ${{ steps.unit_tests.outcome == 'success' && env.BRANCH == 'master' && env.PLATFORM == 'iOS Simulator' && env.NAME == 'iPhone 11 ' }}
104+ if : ${{ steps.unit_tests.outcome == 'success' && env.BRANCH == 'master' && env.PLATFORM == 'iOS Simulator' && env.NAME == 'iPhone 16 ' }}
106105 env :
107106 PLATFORM : ${{ matrix.platform }}
108107 NAME : ${{ matrix.device }}
0 commit comments