Skip to content

Commit f23c991

Browse files
authored
Update CI workflow to test on Linux (#12)
1 parent a33d88d commit f23c991

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: ["main"]
88

99
jobs:
10-
test:
10+
test-macos:
1111
name: Swift ${{ matrix.swift }} on Xcode ${{ matrix.xcode }}
1212
runs-on: ${{ matrix.runs-on }}
1313
env:
@@ -25,7 +25,7 @@ jobs:
2525
- swift: "6.2"
2626
xcode: "26.0"
2727
runs-on: macos-26
28-
28+
timeout-minutes: 10
2929
steps:
3030
- uses: actions/checkout@v4
3131

@@ -37,3 +37,29 @@ jobs:
3737

3838
- name: Test
3939
run: swift test -v
40+
41+
test-linux:
42+
name: Swift ${{ matrix.swift-version }} on Linux
43+
runs-on: ubuntu-latest
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
swift-version:
48+
- 6.0.3
49+
- 6.1.3
50+
- 6.2.1
51+
timeout-minutes: 10
52+
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v4
55+
56+
- name: Setup Swift
57+
uses: vapor/swiftly-action@v0.2
58+
with:
59+
toolchain: ${{ matrix.swift-version }}
60+
61+
- name: Build
62+
run: swift build -v
63+
64+
- name: Test
65+
run: swift test -v

0 commit comments

Comments
 (0)