Skip to content

Commit 7437ca1

Browse files
committed
ci: add swift 6.2 to ci
1 parent db65fda commit 7437ca1

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/pull_request.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,40 @@ on: [pull_request]
44

55
jobs:
66
Lint:
7-
runs-on: macos-latest
7+
runs-on: macos-15
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: SwiftFormat
1111
run: swiftformat --lint --strict . --reporter github-actions-log
1212
test-ubuntu-latest:
1313
name: Test Swift ${{ matrix.swift }} Ubuntu Latest
1414
strategy:
1515
matrix:
16-
swift: ["6.0", "6.0.1", "6.0.2"]
16+
swift: ["6.1.2", "6.2"]
1717
runs-on: ubuntu-latest
1818
container: swift:${{ matrix.swift }}
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Run Tests
22-
run: swift test -Xswiftc -warnings-as-errors -Xcc -Werror
23-
22+
run: swift test -Xswiftc -warnings-as-errors
23+
test-macos-15:
24+
name: Test Swift ${{ matrix.swift }} macOS
25+
strategy:
26+
matrix:
27+
swift: ["6.1.2", "6.2"]
28+
runs-on: macos-15
29+
steps:
30+
- uses: actions/checkout@v4
31+
- name: Install Swiftly
32+
run: |
33+
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
34+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
35+
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
36+
. ~/.swiftly/env.sh && \
37+
hash -r
38+
- name: Install Swift ${{ matrix.swift }}
39+
run: ~/.swiftly/bin/swiftly install --use ${{ matrix.swift }}
40+
- name: Run Tests
41+
run: |
42+
export PATH=${HOME}/.swiftly/bin:${PATH}
43+
swift test -Xswiftc -warnings-as-errors

0 commit comments

Comments
 (0)