This repository has been archived by the owner on May 6, 2024. It is now read-only.
chore: don't send error analytics in combination #991
Workflow file for this run
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
name: "edX Test Suite" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
xcode-ios: | |
name: "${{ matrix.env.name }}" | |
runs-on: macos-11 | |
strategy: | |
fail-fast: false | |
matrix: | |
env: | |
- name: "Test iOS 15" | |
runtime: "iOS-15-2" | |
device: "iPhone 8" | |
task: "testLTRCurrentOS" | |
- name: "Test RTL iOS 15.2" | |
runtime: "iOS-15-2" | |
device: "iPhone 8" | |
task: "testRTLCurrentOS" | |
- name: "Test iOS 14.4" | |
runtime: "iOS-14-4" | |
device: "iPhone 8" | |
task: "testLTRPreviousOS" | |
- name: "Test RTL iOS 14.4" | |
runtime: "iOS-14-4" | |
device: "iPhone 8" | |
task: "testRTLPreviousOS" | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- name: Cache Pods | |
uses: actions/cache@v3 | |
with: | |
path: Pods | |
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Install Dependencies | |
run: pod install | |
- name: "Select Xcode 13.2.1" | |
run: | | |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes | |
sudo ln -s /Applications/Xcode_12.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 14.4.simruntime | |
sudo xcode-select -s /Applications/Xcode_13.2.1.app | |
- name: Run tests | |
if: always() | |
run: | | |
TASK="${{ matrix.env.task }}" | |
RUNTIME="${{ matrix.env.runtime }}" | |
DEVICE="${{ matrix.env.device }}" | |
DEVICE_ID=com.apple.CoreSimulator.SimDeviceType.$(echo $DEVICE | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g") | |
RUNTIME_ID=com.apple.CoreSimulator.SimRuntime.$(echo $RUNTIME | sed -E -e "s/[ \-]+/ /g" -e "s/[^[:alnum:]]/-/g") | |
DESTINATION_ID=$(xcrun simctl create "$DEVICE, $RUNTIME" $DEVICE_ID $RUNTIME_ID) | |
xcrun simctl boot $DESTINATION_ID | |
./gradlew -q $TASK | xcpretty -c | |
shell: bash | |