File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,16 @@ commands:
113
113
condition : << parameters.playwright >>
114
114
steps :
115
115
- run :
116
- name : Install playwright
117
- command :
pnpx [email protected] install --with-deps
116
+ name : Install playwright & ffmpeg
117
+ command : |
118
+ pnpx [email protected] install --with-deps
119
+ # Avoids installing a system version of ffmpeg
120
+ ffmpeg_bin=$(find ~/.cache/ms-playwright -regex '.*/ffmpeg-[0-9]*')
121
+ if [[ -z "$ffmpeg_bin" ]]; then
122
+ >&2 echo "Could not find ffmpeg location"
123
+ exit 1
124
+ fi
125
+ ln -s "$ffmpeg_bin" ~/bin/ffmpeg
118
126
119
127
jobs :
120
128
checkout :
@@ -293,9 +301,6 @@ jobs:
293
301
- install_js :
294
302
playwright : true
295
303
react-version : << parameters.react-version >>
296
- - run :
297
- name : Install ffmpeg
298
- command : sudo apt update && sudo apt upgrade -y && sudo apt install ffmpeg -y
299
304
- run :
300
305
name : Run visual regression tests
301
306
command : xvfb-run pnpm test:regressions
You can’t perform that action at this time.
0 commit comments