From 918deb2d26d0be2beb34f380193221422a948c06 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Mon, 13 Jan 2025 11:29:10 +1300 Subject: [PATCH] ci: record screen --- .github/workflows/ui-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index a676d659..de8da258 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -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