File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 85
85
chromedriver --version
86
86
echo "Chrome Version:"
87
87
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version
88
+ - name : Install ffmpeg
89
+ run : |
90
+ if ! command -v ffmpeg &> /dev/null; then
91
+ echo "ffmpeg not found, installing..."
92
+ brew install ffmpeg
93
+ else
94
+ echo "ffmpeg is already installed."
95
+ fi
88
96
- name : Install dependencies
89
97
run : pip install selenium
90
98
- name : Install dependencies (Mac)
@@ -96,10 +104,22 @@ jobs:
96
104
else
97
105
pip install -r "sample/Tests/requirements-mobile.txt"
98
106
fi
107
+ - name : Start screen recording
108
+ run : |
109
+ mkdir -p recordings
110
+ ffmpeg -y -f avfoundation -video_size 1440x900 -framerate 30 -i "1" recordings/test_recording.mp4 > /dev/null 2>&1 &
99
111
- name : Run UI tests
100
112
env :
101
113
UNITY_APP_PATH : SampleApp.app
102
114
UNITY_APP_NAME : SampleApp
103
115
MAILSLURP_API_KEY : ${{ secrets.MAILSLURP_API_KEY }}
104
116
working-directory : sample/Tests
105
- run : ${{ matrix.test_script }}
117
+ run : ${{ matrix.test_script }}
118
+ - name : Stop screen recording
119
+ run : |
120
+ pkill -f ffmpeg
121
+ - name : Upload screen recording
122
+ uses : actions/upload-artifact@v4
123
+ with :
124
+ name : ScreenRecording-${{ matrix.targetPlatform }}
125
+ path : recordings/test_recording.mp4
You can’t perform that action at this time.
0 commit comments