Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

chore: fix test cases on github actions #1756

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions .github/workflows/edXTestSuit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,24 @@ on:
jobs:
xcode-ios:
name: "${{ matrix.env.name }}"
runs-on: macos-11
runs-on: macos-12
strategy:
fail-fast: false
matrix:
env:
- name: "Test iOS 15"
runtime: "iOS-15-2"
- name: "Test iOS 15.5"
runtime: "iOS-15-5"
device: "iPhone 8"
task: "testLTRCurrentOS"
- name: "Test RTL iOS 15.2"
runtime: "iOS-15-2"
- name: "Test RTL iOS 15.5"
runtime: "iOS-15-5"
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: "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: "Select Xcode 13.4.1"
run: "sudo xcode-select -s /Applications/Xcode_13.4.1.app"
- name: Run tests
if: always()
run: |
Expand All @@ -49,4 +38,4 @@ jobs:
DESTINATION_ID=$(xcrun simctl create "$DEVICE, $RUNTIME" $DEVICE_ID $RUNTIME_ID)
xcrun simctl boot $DESTINATION_ID
./gradlew -q $TASK | xcpretty -c
shell: bash
shell: bash
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def RTLSchemeForScheme(scheme) {
return scheme + '-RTL'
}

def operatingSystems = ["currentOS": "15.2", "previousOS": "14.4"]
def operatingSystems = ["currentOS": "15.5"]
def directions = ["LTR": scheme, "RTL": RTLSchemeForScheme(scheme)]
def commands = ["test" : ["record" : false], "recordSnapshots": ["record" : true]]

Expand Down