-
Notifications
You must be signed in to change notification settings - Fork 37
61 lines (49 loc) · 1.29 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
name: CI
on:
push:
branches: [ "develop" ]
paths-ignore:
- 'docs/**'
- 'iOSTestApp/**'
- 'tvOSTestApp/**'
- 'Example/**'
- 'TestApp/**'
- 'LICENSE'
- '*.md'
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
name: "CocoaPods update"
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Updating CocoaPods
run: gem install cocoapods
build:
name: "CocoaPods linting"
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Updating CocoaPods repo
run: pod repo update
- name: Pod linting
run: pod lib lint --fail-fast --verbose --allow-warnings
SPM:
name: "Build SPM"
runs-on: macOS-12
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=16.2,name=iPhone 14 Pro"
name: "iOS"
scheme: "PlayKit-Package"
- destination: "OS=16.0,name=Apple TV"
name: "tvOS"
scheme: "PlayKit-Package"
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean test | xcpretty