diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7334df91..9b62715c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,3 +61,14 @@ jobs: - name: Run unit tests run: bundle exec fastlane unitTestLane + + + - name: Run unit tests directly + run: | + set -o pipefail && xcodebuild test \ + -project Mindbox.xcodeproj \ + -scheme Mindbox \ + -destination 'platform=iOS Simulator,name=iPhone SE (3rd generation),OS=17.0' \ + -only-testing:MindboxTests \ + CODE_SIGNING_ALLOWED=NO \ + | xcpretty diff --git a/fastlane/Fastfile.swift b/fastlane/Fastfile.swift index c7897817..fae097e5 100644 --- a/fastlane/Fastfile.swift +++ b/fastlane/Fastfile.swift @@ -28,7 +28,8 @@ class Fastfile: LaneFile { xcodebuildFormatter: "xcpretty", disableConcurrentTesting: true, testWithoutBuilding: .userDefined(false), - xcargs: "CI=true CODE_SIGNING_ALLOWED=NO", + xcargs: "CI=true CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO SWIFT_COMPILATION_MODE=singlefile", + destination: "platform=iOS Simulator,name=iPhone SE (3rd generation),OS=18.1", numberOfRetries: 3 ) }