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

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Aug 17, 2023
1 parent fd298c8 commit a9e2b1e
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/edXTestSuit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,39 @@ on:
- master

jobs:
# xcode-14:
# name: "${{ matrix.env.name }}"
# runs-on: macos-13
# strategy:
# fail-fast: false
# matrix:
# env:
# - name: "Test iOS 16"
# runtime: "iOS-16-4"
# device: "iPhone 14 Pro"
# task: "testLTRCurrentOS"
# - name: "Test RTL iOS 16"
# runtime: "iOS-16-4"
# device: "iPhone 14 Pro"
# task: "testRTLCurrentOS"
# steps:
# - name: "Select Xcode 14.3.1"
# run: |
# sudo xcode-select -s /Applications/Xcode_14.3.1.app
# - name: Git checkout
# uses: actions/checkout@v2
# - 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
xcode-14:
name: "${{ matrix.env.name }}"
runs-on: macos-13
strategy:
fail-fast: false
matrix:
env:
- name: "Test iOS 16"
runtime: "iOS-16-4"
device: "iPhone 14 Pro"
task: "testLTRCurrentOS"
- name: "Test RTL iOS 16"
runtime: "iOS-16-4"
device: "iPhone 14 Pro"
task: "testRTLCurrentOS"
steps:
- name: "Select Xcode 14.3.1"
run: |
sudo xcode-select -s /Applications/Xcode_14.3.1.app
- name: Git checkout
uses: actions/checkout@v2
- 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

xcode-13:
name: "${{ matrix.env.name }}"
Expand All @@ -66,6 +66,7 @@ jobs:
- name: Run tests
if: always()
run: |
xcrun simctl list devices
TASK="${{ matrix.env.task }}"
RUNTIME="${{ matrix.env.runtime }}"
DEVICE="${{ matrix.env.device }}"
Expand Down

0 comments on commit a9e2b1e

Please sign in to comment.