mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-04 05:57:23 +03:00
Fix CI (#2518)
This commit is contained in:
parent
85932e1755
commit
d8e8a7f185
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@ -10,7 +10,7 @@ on:
|
||||
jobs:
|
||||
xcode14:
|
||||
name: "Xcode 14 (Monterey)"
|
||||
runs-on: macos-12
|
||||
runs-on: macos-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -21,19 +21,6 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run Tests
|
||||
run: CI=1 ./scripts/all-tests.sh "${{ matrix.environment }}"
|
||||
xcode13:
|
||||
name: "Xcode 13 (Big Sur)"
|
||||
runs-on: macos-11
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
environment: [iOS, iOS-Example, Unix, watchOS, tvOS, SPM]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Run Tests
|
||||
run: CI=1 XCODE13=1 ./scripts/all-tests.sh "${{ matrix.environment }}"
|
||||
linux:
|
||||
name: "Test (Linux)"
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -21,58 +21,30 @@ BOLDWHITE="\033[1m\033[37m"
|
||||
|
||||
# make sure all tests are passing
|
||||
if [[ `uname` == "Darwin" ]]; then
|
||||
if [[ "${XCODE13}" == "" ]]; then
|
||||
echo "🏔 Running iOS 16.0 / Xcode 14"
|
||||
echo "🏔 Running iOS 16.0 / Xcode 14"
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.iOS-16- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_IOS_SIMULATOR=RxSwiftTest/iPhone-14/iOS/16.0
|
||||
else
|
||||
echo "No iOS 16.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.watchOS-9- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_WATCHOS_SIMULATOR=RxSwiftTest/Apple-Watch-Series-8-45mm/watchOS/9.0
|
||||
else
|
||||
echo "No watchOS 9.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.tvOS-16- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_TVOS_SIMULATOR=RxSwiftTest/Apple-TV-1080p/tvOS/16.0
|
||||
else
|
||||
echo "No tvOS 16.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.iOS-16- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_IOS_SIMULATOR=RxSwiftTest/iPhone-14/iOS/16.2
|
||||
else
|
||||
echo "🏔 Running iOS 15.2 / Xcode 13"
|
||||
echo "No iOS 16.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.iOS-15- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_IOS_SIMULATOR=RxSwiftTest/iPhone-12/iOS/15.2
|
||||
else
|
||||
echo "No iOS 15.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.watchOS-9- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_WATCHOS_SIMULATOR=RxSwiftTest/Apple-Watch-Series-8-45mm/watchOS/9.0
|
||||
else
|
||||
echo "No watchOS 9.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.watchOS-8- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_WATCHOS_SIMULATOR=RxSwiftTest/Apple-Watch-Series-6-44mm/watchOS/8.3
|
||||
else
|
||||
echo "No watchOS 8.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.tvOS-15- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_TVOS_SIMULATOR=RxSwiftTest/Apple-TV-1080p/tvOS/15.2
|
||||
else
|
||||
echo "No tvOS 15.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
if [ `xcrun simctl list runtimes | grep com.apple.CoreSimulator.SimRuntime.tvOS-16- | wc -l` -ge 1 ]; then
|
||||
DEFAULT_TVOS_SIMULATOR=RxSwiftTest/Apple-TV-1080p/tvOS/16.0
|
||||
else
|
||||
echo "No tvOS 16.* Simulator found, available runtimes are:"
|
||||
xcrun simctl list runtimes
|
||||
exit -1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user