Skip to content

Commit 6168736

Browse files
committed
Tweaking runner actions
1 parent 5ed2102 commit 6168736

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/unit-tests.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,33 @@ on:
2323
- '*' # Push events to every tag
2424

2525
jobs:
26-
swift_tests:
26+
swift_tests_latest:
27+
name: Latest Swift Version
28+
runs-on: macos-15
29+
steps:
30+
- uses: maxim-lobanov/setup-xcode@v1
31+
with:
32+
xcode-version: "16.0"
33+
- uses: actions/checkout@v3
34+
- uses: actions/cache@v3
35+
with:
36+
path: .build
37+
key: macos-latest-spm-${{ hashFiles('**/Package.resolved') }}
38+
restore-keys: |
39+
macos-latest-spm-
40+
- name: Build
41+
run: swift build
42+
- name: Run tests
43+
run: swift test
44+
swift_tests_previous:
2745
name: Swift Version ${{ matrix.swift }}
2846
strategy:
2947
matrix:
30-
os: [macos-15]
31-
swift: ["6.0", "5.9", "5.8"]
48+
os: [macos-13]
49+
swift: ["latest", "5.9", "5.8"]
3250
runs-on: ${{ matrix.os }}
3351
steps:
34-
- uses: swift-actions/setup-swift@v2
52+
- uses: swift-actions/setup-swift@v1
3553
with:
3654
swift-version: ${{ matrix.swift }}
3755
- uses: maxim-lobanov/setup-xcode@v1
@@ -53,16 +71,13 @@ jobs:
5371
name: iOS Unit Tests
5472
runs-on: macos-15
5573
steps:
56-
- uses: swift-actions/setup-swift@v2
57-
with:
58-
swift-version: 6.0
5974
- uses: actions/checkout@v3
6075
- uses: actions/cache@v3
6176
with:
6277
path: .build
63-
key: ${{ matrix.os }}-spm-${{ hashFiles('**/Package.resolved') }}
78+
key: macos-15-spm-${{ hashFiles('**/Package.resolved') }}
6479
restore-keys: |
65-
${{ matrix.os }}-spm-
80+
macos-15-spm-
6681
6782
- name: Build
6883
run: xcodebuild build -scheme SyntaxSparrow -destination "OS=17.2,name=iPhone 13"

0 commit comments

Comments
 (0)