mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
[ios] [github] add simulator pre-boot before running the tests
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
f3bc6d9d8b
commit
f32462ce94
6
.github/workflows/ios-check.yaml
vendored
6
.github/workflows/ios-check.yaml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
LANGUAGE: en_US.UTF-8
|
LANGUAGE: en_US.UTF-8
|
||||||
LC_ALL: en_US.UTF-8
|
LC_ALL: en_US.UTF-8
|
||||||
TEST_RESULTS_BUNDLE_NAME: CoMaps-Test-Results
|
TEST_RESULTS_BUNDLE_NAME: CoMaps-Test-Results
|
||||||
|
SIMULATOR_DEVICE: 'iPhone 16 Pro Max'
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -50,12 +51,15 @@ jobs:
|
|||||||
if: matrix.buildType == 'Debug'
|
if: matrix.buildType == 'Debug'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
# Start sim before the build to make sure it's booted when tests start.
|
||||||
|
xcrun simctl boot "${{ env.SIMULATOR_DEVICE }}" || true
|
||||||
|
xcrun simctl bootstatus "${{ env.SIMULATOR_DEVICE }}" -b
|
||||||
xcodebuild test \
|
xcodebuild test \
|
||||||
-workspace xcode/omim.xcworkspace \
|
-workspace xcode/omim.xcworkspace \
|
||||||
-scheme OMaps \
|
-scheme OMaps \
|
||||||
-configuration Debug \
|
-configuration Debug \
|
||||||
-sdk iphonesimulator \
|
-sdk iphonesimulator \
|
||||||
-destination 'platform=iOS Simulator,name=iPhone 16 Pro Max,OS=latest' \
|
-destination "platform=iOS Simulator,name=${{ env.SIMULATOR_DEVICE }},OS=latest" \
|
||||||
-quiet \
|
-quiet \
|
||||||
-resultBundlePath ${{ env.TEST_RESULTS_BUNDLE_NAME }}.xcresult \
|
-resultBundlePath ${{ env.TEST_RESULTS_BUNDLE_NAME }}.xcresult \
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
|
|||||||
Reference in New Issue
Block a user