-
-
Notifications
You must be signed in to change notification settings - Fork 310
118 lines (116 loc) · 3.69 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: "Pulse CI"
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
ios-latest:
name: Unit Tests (iOS 16.4, Xcode 14.3.1)
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
Scripts/test.sh -s "Pulse" -d "OS=16.4,name=iPhone 14 Pro"
Scripts/test.sh -s "PulseUI" -d "OS=16.4,name=iPhone 14 Pro"
macos-latest:
name: Unit Tests (macOS, Xcode 14.3.1)
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: Scripts/test.sh -d "platform=macOS"
tvos-latest:
name: Unit Tests (tvOS 16.4, Xcode 14.3.1)
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
Scripts/test.sh -s "Pulse" -d "OS=16.4,name=Apple TV"
Scripts/test.sh -s "PulseUI" -d "OS=16.4,name=Apple TV"
watchos-latest:
name: Run Build (watchOS 9.2, Xcode 14.2)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
Scripts/build.sh -s "Pulse" -d "OS=9.2,name=Apple Watch Series 8 (45mm)"
Scripts/build.sh -s "PulseUI" -d "OS=9.2,name=Apple Watch Series 8 (45mm)"
ios-xcode-previous:
name: Unit Tests (iOS 16.2, Xcode 14.2)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
Scripts/test.sh -s "Pulse" -d "OS=16.2,name=iPhone 14 Pro"
Scripts/test.sh -s "PulseUI" -d "OS=16.2,name=iPhone 14 Pro"
swift-build:
name: Swift Build (SPM)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Build
run: swift build
discover-typos:
name: Discover Typos
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Discover typos
run: |
python3 -m pip install --upgrade pip
python3 -m pip install codespell
codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*,./Tests/*,./Sources/PulseUI/Mocks/*"
build-demo-ios:
name: Build Demo (iOS)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Build Demo
run: |
set -o pipefail
xcodebuild build -scheme "Pulse Demo iOS" -destination "OS=16.2,name=iPhone 14 Pro" | xcpretty
build-demo-tvos:
name: Build Demo (tvOS)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Build Demo
run: |
set -o pipefail
xcodebuild build -scheme "Pulse Demo tvOS" -destination "OS=16.1,name=Apple TV" | xcpretty
build-integration-examples-ios:
name: Build Integration Examples (iOS)
runs-on: macOS-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Build Integration Tests
run: |
set -o pipefail
xcodebuild build -scheme "Pulse Integration Examples iOS" -destination "OS=16.2,name=iPhone 14 Pro" | xcpretty