Skip to content

Commit 2afce2c

Browse files
authored
Merge pull request #13 from roanutil/update-workflow
Update workflow
2 parents 7b3d249 + 345b018 commit 2afce2c

3 files changed

Lines changed: 25 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,33 @@ 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+
include:
27+
- os: macos-12
28+
xcode: 13.2.1 # Swift 5.5.2
29+
- os: macos-12
30+
xcode: 13.4.1 # Swift 5.6
31+
- os: macos-13
32+
xcode: 14.2 # Swift 5.7
33+
- os: macos-13
34+
xcode: 14.3 # Swift 5.8
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v3
38+
- name: Select Xcode ${{ matrix.xcode }}
39+
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
2940
- name: Run Tests
3041
run: swift test --enable-code-coverage
3142
- name: Swift Coverage Report

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/Packages
44
/*.xcodeproj
55
xcuserdata/
6+
/.default.profraw

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)