Skip to content

Commit 9db68af

Browse files
committed
Merge branch 'main' into develop
2 parents 842771e + 98ed7e1 commit 9db68af

1 file changed

Lines changed: 47 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,74 @@ on:
88

99
jobs:
1010
test:
11-
name: Test on ${{ matrix.destination }}
11+
name: ${{ matrix.xcode }} / ${{ matrix.platform }} / Swift ${{ matrix.swift-version }}
1212
runs-on: macos-15
1313

1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- destination: 'platform=iOS Simulator,name=iPhone 16'
19-
name: iOS
20-
- destination: 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)'
21-
name: watchOS
18+
# Xcode 16 - Swift 6 language mode
19+
- xcode: 'Xcode 16'
20+
xcode-path: '/Applications/Xcode_16.4.app'
21+
destination: 'platform=iOS Simulator,name=iPhone 16'
22+
platform: iOS
23+
swift-version: '6'
24+
- xcode: 'Xcode 16'
25+
xcode-path: '/Applications/Xcode_16.4.app'
26+
destination: 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)'
27+
platform: watchOS
28+
swift-version: '6'
29+
30+
# Xcode 16 - Swift 5 language mode
31+
- xcode: 'Xcode 16'
32+
xcode-path: '/Applications/Xcode_16.4.app'
33+
destination: 'platform=iOS Simulator,name=iPhone 16'
34+
platform: iOS
35+
swift-version: '5'
36+
37+
# Xcode 26 - Swift 6 language mode
38+
- xcode: 'Xcode 26'
39+
xcode-path: '/Applications/Xcode_26.0.1.app'
40+
destination: 'platform=iOS Simulator,name=iPhone 16'
41+
platform: iOS
42+
swift-version: '6'
43+
- xcode: 'Xcode 26'
44+
xcode-path: '/Applications/Xcode_26.0.1.app'
45+
destination: 'platform=watchOS Simulator,name=Apple Watch Series 11 (42mm)'
46+
platform: watchOS
47+
swift-version: '6'
48+
49+
# Xcode 26 - Swift 5 language mode
50+
- xcode: 'Xcode 26'
51+
xcode-path: '/Applications/Xcode_26.0.1.app'
52+
destination: 'platform=iOS Simulator,name=iPhone 16'
53+
platform: iOS
54+
swift-version: '5'
2255

2356
steps:
2457
- name: Checkout
2558
uses: actions/checkout@v4
2659

60+
- name: Select Xcode ${{ matrix.xcode }}
61+
run: sudo xcode-select -s ${{ matrix.xcode-path }}/Contents/Developer
62+
2763
- name: Show Xcode version
2864
run: xcodebuild -version
2965

66+
- name: Show Swift version
67+
run: swift --version
68+
3069
- name: Build and Test
3170
run: |
3271
xcodebuild test \
3372
-scheme MultiPicker \
3473
-destination '${{ matrix.destination }}' \
35-
-enableCodeCoverage YES
74+
-enableCodeCoverage YES \
75+
SWIFT_VERSION=${{ matrix.swift-version }}
3676
3777
- name: Upload coverage reports to Codecov
38-
if: matrix.name == 'iOS'
78+
if: matrix.platform == 'iOS' && matrix.xcode == 'Xcode 16' && matrix.swift-version == '6'
3979
uses: codecov/codecov-action@v4
4080
with:
4181
fail_ci_if_error: false

0 commit comments

Comments
 (0)