-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: adjust expected values for event payloads to account for differences in float precision
- Loading branch information
1 parent
f29629d
commit 98252fd
Showing
3 changed files
with
121 additions
and
17 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 MuxUploadSDK" |
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
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,44 @@ | ||
#!/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 "▸ Resolve Package Dependencies" | ||
|
||
xcodebuild -resolvePackageDependencies | ||
|
||
echo "▸ Available Schemes" | ||
|
||
xcodebuild -list -json | ||
|
||
echo "▸ Test ${SCHEME}" | ||
|
||
xcodebuild clean test \ | ||
-scheme $SCHEME \ | ||
-destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15' \ | ||
-sdk iphonesimulator17.0 \ | ||
| xcbeautify |