-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5051c7
commit 58f3181
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
unit-tests: | ||
name: Run Unit Tests | ||
runs-on: macos-13 | ||
steps: | ||
- name: Install xcbeautify | ||
run: brew install xcbeautify | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run Tests | ||
run: "scripts/run-unit-tests.sh MuxAVPlayerSDK" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
readonly XCODE=$(xcodebuild -version | grep Xcode | cut -d " " -f2) | ||
|
||
set -euo pipefail | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "▸ Usage: $0 SCHEME" | ||
exit 1 | ||
fi | ||
|
||
readonly SCHEME="$1" | ||
|
||
if ! command -v xcbeautify &> /dev/null | ||
then | ||
echo -e "\033[1;31m ERROR: xcbeautify could not be found please install it... \033[0m" | ||
exit 1 | ||
fi | ||
|
||
echo "▸ Selecting Xcode 15" | ||
|
||
sudo xcode-select -s /Applications/Xcode_15.0.app/Contents/Developer | ||
|
||
echo "▸ Using Xcode Version: ${XCODE}" | ||
|
||
echo "▸ Available Xcode SDKs" | ||
|
||
xcodebuild -showsdks | ||
|
||
echo "▸ Test ${SCHEME}" | ||
|
||
xcodebuild clean test \ | ||
-scheme $SCHEME \ | ||
-destination 'platform=iOS Simulator,OS=17.0,name=iPhone 15' \ | ||
-sdk iphonesimulator17.0 \ | ||
| xcbeautify |