Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Apr 16, 2024
1 parent c9f4bcf commit ee4ba90
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ jobs:
continue-on-error: true
run: |
kill -SIGINT $EMU_RECORD
nix develop -c adb pull /sdcard/screenRecord.mp4 ./screenRecord.mp4
nix develop -c adb pull /sdcard/screenRecord.mp4 ./screenRecordUnopt.mp4
ffmpeg -i screenRecordUnopt.mp4 screenRecord.mp4
nix develop -c adb emu kill
- uses: actions/upload-artifact@v4
Expand All @@ -102,14 +103,15 @@ jobs:
if: always()
with:
path: screenRecord.mp4
gzip: false
predefinedAcl: publicRead
headers: |-
content-type: video/mp4
destination: galoy-mobile-recordings/android-recordings/${{ github.run_id }}
- name: Append Direct Links to GitHub Actions Summary
if: always()
run: |
echo "## Android Recording" >> $GITHUB_STEP_SUMMARY
echo "## Android Recording" > $GITHUB_STEP_SUMMARY
COMPLETE_RECORDING_URL="https://storage.googleapis.com/galoy-mobile-recordings/android-recordings/${{ github.run_id }}/screenRecord.mp4"
echo "Full Recording: [Click here](<$COMPLETE_RECORDING_URL>)" >> $GITHUB_STEP_SUMMARY
Expand Down Expand Up @@ -193,7 +195,13 @@ jobs:
- name: Record Simulator in Background
run: |
./ci/tasks/screen-record-simulator.sh &
DEVICE_ID=$(xcrun simctl list devices | grep "iPhone SE (3rd generation)" | cut -d' ' -f9 | tr -d '()')
open -a Simulator --args -CurrentDeviceUDID $DEVICE_ID
while ! xcrun simctl list devices | grep "(Booted)"; do
sleep 1
echo "Waiting for Simulator device to come online..."
done
xcrun simctl io booted recordVideo screenRecord.mov &
echo "SIM_RECORD=$!" >> $GITHUB_ENV
# Tests on iOS Simulator
Expand Down Expand Up @@ -235,14 +243,15 @@ jobs:
if: always()
with:
path: screenRecord.mp4
gzip: false
predefinedAcl: publicRead
headers: |-
content-type: video/mp4
destination: galoy-mobile-recordings/ios-recordings/${{ github.run_id }}
- name: Append Direct Links to GitHub Actions Summary
if: always()
run: |
echo "## iOS Recording" >> $GITHUB_STEP_SUMMARY
echo "## iOS Recording" > $GITHUB_STEP_SUMMARY
COMPLETE_RECORDING_URL="https://storage.googleapis.com/galoy-mobile-recordings/ios-recordings/${{ github.run_id }}/screenRecord.mp4"
echo "Full Recording: [Click here](<$COMPLETE_RECORDING_URL>)" >> $GITHUB_STEP_SUMMARY
Expand Down
8 changes: 0 additions & 8 deletions ci/tasks/screen-record-simulator.sh

This file was deleted.

0 comments on commit ee4ba90

Please sign in to comment.