Skip to content

Commit f03188d

Browse files
committed
Breakout linting into own job. Add macos-13 with xcode-14.2 and xcode-14.3 to matrix.
update-workflow
1 parent 7b3d249 commit f03188d

1 file changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,36 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
library:
14-
runs-on: macos-12
13+
lint:
14+
runs-on: macos-13
1515
environment: default
16-
strategy:
17-
matrix:
18-
platform: [macOS]
19-
xcode: [13.2.1, 13.4.1, '14.0']
20-
# Swift: 5.5.2, 5.6, 5.7
2116
steps:
2217
- uses: actions/checkout@v3
23-
- name: Select Xcode ${{ matrix.xcode }}
24-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2518
- name: Format lint
2619
run: swiftformat --lint .
2720
- name: Lint
2821
run: swiftlint .
22+
test:
23+
environment: default
24+
strategy:
25+
matrix:
26+
os: [macos-12, macos-13]
27+
xcode: [13.2.1, 13.4.1, 14.2, 14.3]
28+
# Swift: 5.5.2, 5.6, 5.7, 5.8
29+
include:
30+
- os: macos-12
31+
xcode: 13.2.1
32+
- os: macos-12
33+
xcode: 13.4.1
34+
- os: macos-13
35+
xcode: 14.2
36+
- os: macos-13
37+
xcode: 14.3
38+
runs-on: ${{ matrix.os }}
39+
steps:
40+
- uses: actions/checkout@v3
41+
- name: Select Xcode ${{ matrix.xcode }}
42+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2943
- name: Run Tests
3044
run: swift test --enable-code-coverage
3145
- name: Swift Coverage Report

0 commit comments

Comments
 (0)