Update pr.yml #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Show current version of Xcode | ||
run: xcodebuild -version | ||
- name: Updating CocoaPods repo | ||
run: pod repo update | ||
- name: Pod linting | ||
run: pod lib lint --fail-fast --verbose | ||
SPM: | ||
name: "Build SPM" | ||
environment: PR | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- destination: "OS=16.0,name=iPhone 14 Pro" | ||
name: "iOS" | ||
scheme: "KalturaNetKit" | ||
- destination: "OS=16.0,name=Apple TV" | ||
name: "tvOS" | ||
scheme: "KalturaNetKit" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Show current version of Xcode | ||
run: xcodebuild -version | ||
- name: ${{ matrix.name }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild docbuild -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean build | xcpretty |