Skip to content

Commit 5ccae2e

Browse files
committed
[CHORE] Action fixes
1 parent b129111 commit 5ccae2e

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/unit-tests.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,25 @@ on:
2323

2424
jobs:
2525
swift_tests_latest:
26-
name: Latest Swift
26+
name: Latest Swift (6.1)
27+
runs-on: macos-15
28+
steps:
29+
- uses: maxim-lobanov/setup-xcode@v1
30+
with:
31+
xcode-version: "16.3"
32+
- uses: actions/checkout@v3
33+
- uses: actions/cache@v3
34+
with:
35+
path: .build
36+
key: macos-latest-spm-${{ hashFiles('**/Package.resolved') }}
37+
restore-keys: |
38+
macos-latest-tests-spm-
39+
- name: Build
40+
run: swift build
41+
- name: Run tests
42+
run: swift test
43+
swift_tests_600:
44+
name: Swift 6.0
2745
runs-on: macos-15
2846
steps:
2947
- uses: maxim-lobanov/setup-xcode@v1
@@ -35,12 +53,12 @@ jobs:
3553
path: .build
3654
key: macos-latest-spm-${{ hashFiles('**/Package.resolved') }}
3755
restore-keys: |
38-
macos-latest-spm-
56+
macos-600-tests-spm-
3957
- name: Build
4058
run: swift build
4159
- name: Run tests
4260
run: swift test
43-
swift_tests_previous:
61+
swift_tests_510:
4462
name: Swift 5.10
4563
runs-on: macos-14
4664
steps:
@@ -53,7 +71,7 @@ jobs:
5371
path: .build
5472
key: macos-14-swift-510-spm-${{ hashFiles('**/Package.resolved') }}
5573
restore-keys: |
56-
macos-14-swift-510-spm-
74+
macos-14-swift-510-tests-spm-
5775
- name: Build
5876
run: swift build
5977
- name: Run tests
@@ -78,7 +96,7 @@ jobs:
7896
path: .build
7997
key: ${{ matrix.os }}-${{ matrix.swift }}-spm-${{ hashFiles('**/Package.resolved') }}
8098
restore-keys: |
81-
${{ matrix.os }}-spm-
99+
${{ matrix.os }}-tests-spm-
82100
- name: Build
83101
run: swift build
84102
- name: Run tests

0 commit comments

Comments
 (0)