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 b5cf8f7 commit 430e5d6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/edXTestSuit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,24 @@ jobs:
xcrun simctl list runtimes
- name: Git checkout
uses: actions/checkout@v2
- name: Run tests
if: always()
- name: Calculate DESTINATION_ID
id: destination-id
run: |
xcrun simctl list devices
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)
echo DESTINATION_ID
echo "DESTINATION_ID=${DESTINATION_ID}" >> $GITHUB_ENV
- name: Display DESTINATION_ID
run: |
echo "DESTINATION_ID: $DESTINATION_ID"
- name: Boot simulator
run: |
xcrun simctl boot $DESTINATION_ID
./gradlew -q $TASK | xcpretty -c
shell: bash
- name: Run tests
if: always()
run: |
./gradlew -q $TASK | xcpretty -c
shell: bash

0 comments on commit 430e5d6

Please sign in to comment.