Skip to content

Commit

Permalink
ci: record screen
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Jan 12, 2025
1 parent 8eb8b70 commit 918deb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ jobs:
pip install -r "sample/Tests/requirements-mobile.txt"
fi
- name: Start screen recording
run: |
mkdir -p recordings
VIDEO_DEVICE=$(ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "video devices" -A 1 | tail -n 1 | sed 's/.*\[\([0-9]\+\)\].*/\1/')
echo "Using video device: $VIDEO_DEVICE"
ffmpeg -y -f avfoundation -video_size 1440x900 -framerate 30 -i "$VIDEO_DEVICE" recordings/test_recording.mp4 > /dev/null 2>&1 &
run: |
mkdir -p recordings
VIDEO_DEVICE=$(ffmpeg -f avfoundation -list_devices true -i "" 2>&1 | grep "video devices" -A 1 | tail -n 1 | sed 's/.*\[\([0-9]\+\)\].*/\1/')
echo "Using video device: $VIDEO_DEVICE"
ffmpeg -y -f avfoundation -video_size 1440x900 -framerate 30 -i "$VIDEO_DEVICE" recordings/test_recording.mp4 > /dev/null 2>&1 &
- name: Run UI tests
env:
UNITY_APP_PATH: SampleApp.app
Expand Down

0 comments on commit 918deb2

Please sign in to comment.