-
Notifications
You must be signed in to change notification settings - Fork 205
81 lines (77 loc) · 2.66 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
podspec:
runs-on: macos-12
name: CocoaPods Lint
env:
DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer"
steps:
- uses: actions/checkout@v2
- run: pod lib lint --allow-warnings
xcode:
name: ${{ matrix.xcode }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
- xcode: "Xcode_13.4.1"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1"
- xcode: "Xcode_12.5.1"
runsOn: macOS-11
name: "macOS 11, Xcode 12.5.1, Swift 5.4.2"
- xcode: "Xcode_12"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.0.1, Swift 5.3"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: ${{ matrix.name }}
run: |
set -o pipefail
xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit | xcpretty -c
xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty -c
xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -sdk appletvsimulator -destination "name=Apple TV" | xcpretty -c
- name: Upload coverage to Codecov
uses: codecov/[email protected]
if: ${{ success() }}
swiftpm:
name: SPM with ${{ matrix.xcode }}
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
strategy:
fail-fast: false
matrix:
include:
- xcode: "Xcode_14.0.1"
runsOn: macOS-12
name: "macOS 12, Xcode 14.0.1, Swift 5.7"
action: swift test -c debug
- xcode: "Xcode_13.4.1"
runsOn: macOS-12
name: "macOS 12, Xcode 13.4.1, Swift 5.6.1"
action: swift test -c debug
- xcode: "Xcode_12.5.1"
runsOn: macOS-11
name: "macOS 11, Xcode 12.5.1, Swift 5.4.2"
action: swift test -c debug
- xcode: "Xcode_12"
runsOn: macOS-10.15
name: "macOS 10.15, Xcode 12.0.1, Swift 5.3"
action: swift build -c debug
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.name }}
run: ${{ matrix.action }}