Skip to content

Commit 8a25742

Browse files
committed
Update CI to test only Swift 6.0 on Xcode 16.4 and 26.0
1 parent c5de9c6 commit 8a25742

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,28 @@ on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
spm-tests:
7-
name: "Swift ${{ matrix.swift }} on ${{ matrix.os }}"
8-
runs-on: ${{ matrix.os }}
7+
name: "Swift 6.0 on ${{ matrix.xcode }}"
8+
runs-on: macos-15
99

1010
strategy:
1111
matrix:
12-
os: [macos-13, macos-14, macos-latest]
13-
swift: ["5.9", "6.0"]
14-
exclude:
15-
- os: macos-13
16-
swift: "6.0"
12+
xcode: ["16.4", "26.0"]
1713

1814
steps:
1915
- uses: actions/checkout@v4
2016

2117
- name: Select Xcode version
22-
if: matrix.swift == '5.9'
23-
run: sudo xcode-select -s /Applications/Xcode_15.2.app
18+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2419

2520
- name: Run tests
2621
run: swift test --enable-code-coverage
2722

2823
- name: Generate coverage report
29-
if: matrix.os == 'macos-latest' && matrix.swift == '6.0'
24+
if: matrix.xcode == '26.0'
3025
run: xcrun llvm-cov export -format="lcov" .build/debug/CombineExtPackageTests.xctest/Contents/MacOS/CombineExtPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
3126

3227
- name: Upload coverage to Codecov
33-
if: matrix.os == 'macos-latest' && matrix.swift == '6.0'
28+
if: matrix.xcode == '26.0'
3429
uses: codecov/codecov-action@v4
3530
with:
3631
files: coverage.lcov

0 commit comments

Comments
 (0)