Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Feb 22, 2024
1 parent cb7b520 commit 905164a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/testing-matrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Testing Matrix

on:
workflow_dispatch:
push:

jobs:
example_matrix:
strategy:
matrix:
platform: [iOS, macOS]
xcode-version: [14.2, 15.2]

runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Xcode Version
run: xcodebuild -version

- name: Show SDKs
run: xcodebuild -showsdks

- name: Execute Test
run: xcodebuild -scheme LiveKitTests -destination 'platform=macOS,arch=arm64' -only-testing 'LiveKitTests/Basic' test

# xcodebuild test -scheme LiveKit -sdk iphonesimulator17.2 -destination "OS=17.4,name=iPhone 13 Mini"
21 changes: 21 additions & 0 deletions Tests/LiveKitTests/Basic.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2024 LiveKit
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@testable import LiveKit
import XCTest

class Basic: XCTestCase {
}
4 changes: 2 additions & 2 deletions Tests/LiveKitTests/CompleterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CompleterTests: XCTestCase {
group.addTask {
print("Timer task: Started...")
// Cancel after 3 seconds
try await Task.sleep(until: .now + .seconds(3), clock: .continuous)
// try await Task.sleep(until: .now + .seconds(3), clock: .continuous)
print("Timer task: Cancelling...")
completer.reset()
}
Expand Down Expand Up @@ -94,7 +94,7 @@ class CompleterTests: XCTestCase {
group.addTask {
print("Timer task: Started...")
// Cancel after 3 seconds
try await Task.sleep(until: .now + .seconds(3), clock: .continuous)
// try await Task.sleep(until: .now + .seconds(3), clock: .continuous)
print("Timer task: Completing...")
completer.resume(returning: ())
}
Expand Down

0 comments on commit 905164a

Please sign in to comment.