Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CI"

on:
workflow_dispatch:
push:

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
build:
name: "Build and test iOS"
runs-on: macos-latest
#timeout-minutes: 30
environment: Kaltura_2222401

strategy:
matrix:
ios: [15.2]

steps:
- uses: actions/checkout@v3
- name: Updating CocoaPods repo
run: pod repo update
- name: Setup Environment
run: |
sed -e "s#@YOUR_PARTNER_ID@#${{ secrets.PARTNER_ID }}#g" -e "s#@YOUR_ADMIN_SECRET@#${{ secrets.SECRET }}#g" -e "s#@SERVER_URL@#${{ secrets.SERVER_URL }}#g" Example/Tests/TestsConfig.template.plist > Example/Tests/TestsConfig.plist
- name: Install CocoaPods
working-directory: ./Example
run: pod install
- name: Build
working-directory: ./Example
run: set -o pipefail && xcodebuild -workspace "KalturaClient.xcworkspace" -scheme "KalturaClient-Example" -destination 'platform=iOS Simulator,name=iPhone 11,OS=${{ matrix.ios }}' clean test | xcpretty

#xcodebuild clean build test -workspace Example/KalturaClient.xcworkspace -scheme KalturaClient_Tests -destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.3.1' > $BUILD_OUTPUT 2>&1
4 changes: 4 additions & 0 deletions Example/Tests/PrimitiveResponsesTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ class PrimitiveResponsesTest: BaseTest {
self.executor.send(request: requestBuilder.build(self.client!))
}
}

//it ("FAIL") {
// fail()
//}
}
}
}