Skip to content

Commit 58e1a77

Browse files
feat: Unifies linux testing
1 parent ff2611e commit 58e1a77

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

.github/workflows/test.yaml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@ jobs:
2828
${{ inputs.package_path != '' && format('--package-path={0}', inputs.package_path) || '' }}
2929
3030
linux:
31-
name: Test on Linux
31+
name: Test on Linux - ${{ matrix.swift-image }}
32+
strategy:
33+
matrix:
34+
swift-image:
35+
- "swift:5.8-jammy"
36+
- "swift:5.9-jammy"
37+
- "swift:5.10-jammy"
38+
- "swift:5.10-noble"
39+
- "swift:6.0-jammy"
40+
- "swift:6.0-noble"
3241
runs-on: ubuntu-latest
42+
container: ${{ matrix.swift-image }}
3343
steps:
34-
- uses: swift-actions/setup-swift@v2
35-
- uses: actions/checkout@v4
44+
- name: Checkout
45+
uses: actions/checkout@v4
3646
- name: Test
3747
run: |
3848
swift test \
@@ -48,20 +58,3 @@ jobs:
4858
uses: skiptools/swift-android-action@v2
4959
with:
5060
package-path: ${{ inputs.package_path != '' && inputs.package_path || '.' }}
51-
52-
backcompat-ubuntu-22_04:
53-
name: Test Swift ${{ matrix.swift }} on Ubuntu 22.04
54-
runs-on: ubuntu-22.04
55-
strategy:
56-
matrix:
57-
swift: ["5.8", "5.9", "5.10", "6.0"]
58-
steps:
59-
- uses: swift-actions/setup-swift@v2
60-
with:
61-
swift-version: ${{ matrix.swift }}
62-
- uses: actions/checkout@v4
63-
- name: Test
64-
run: |
65-
swift test \
66-
--parallel \
67-
${{ inputs.package_path != '' && format('--package-path={0}', inputs.package_path) || '' }}

0 commit comments

Comments
 (0)