-
Notifications
You must be signed in to change notification settings - Fork 37
56 lines (46 loc) · 1.3 KB
/
pr.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
name: PR
on:
pull_request:
branches: [ "develop" ]
paths-ignore:
- 'docs/**'
- 'iOSTestApp/**'
- 'tvOSTestApp/**'
- 'Example/**'
- 'TestApp/**'
- 'LICENSE'
- '*.md'
concurrency:
group: PR_${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
name: "CocoaPods linting"
environment: PR
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
- name: Updating Cocoapods
run: gem install cocoapods
- name: Updating CocoaPods repo
run: pod repo update
- name: Pod linting
run: pod lib lint --fail-fast --verbose --allow-warnings
SPM:
name: "Build SPM"
environment: PR
runs-on: macOS-12
strategy:
fail-fast: false
matrix:
include:
- destination: "OS=17.0,name=iPhone 15 Pro"
name: "iOS"
scheme: "PlayKit-Package"
- destination: "OS=17.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