Skip to content

Commit 2784992

Browse files
test: Adds swift versions to CI
1 parent 7bc4147 commit 2784992

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/test.yml

+14-12
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,33 @@ on:
66
pull_request:
77
branches: [ main ]
88
jobs:
9-
linux-build:
9+
macos-build:
1010
name: Build and test on ${{ matrix.os }}
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest]
14+
os: [macos-latest]
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: swift-actions/setup-swift@v1
17+
- uses: maxim-lobanov/setup-xcode@v1
18+
with:
19+
xcode-version: latest-stable
1820
- name: Build
1921
run: swift build
2022
- name: Run tests
2123
run: swift test
22-
macos-build:
23-
name: Build and test on ${{ matrix.os }}
24+
linux-build:
25+
name: Build and test ${{ matrix.swift }} on ${{ matrix.os }}
2426
runs-on: ${{ matrix.os }}
2527
strategy:
2628
matrix:
27-
os: [macos-latest]
29+
os: [ubuntu-latest]
30+
swift: ["5.4", "5.5", "5.6"]
2831
steps:
29-
- uses: actions/checkout@v2
30-
- uses: maxim-lobanov/setup-xcode@v1
32+
- uses: swift-actions/setup-swift@v1
3133
with:
32-
xcode-version: latest-stable
33-
- name: Build
34-
run: swift build
35-
- name: Run tests
34+
swift-version: ${{ matrix.swift }}
35+
- uses: actions/checkout@v2
36+
- name: Test
3637
run: swift test
38+

0 commit comments

Comments
 (0)