4040 uses : actions/download-artifact@v4
4141 with :
4242 name : ${{ steps.build.outputs.artifact_name }}
43- path : ' ./openvidu-demo-app'
43+ path : ' ./openvidu-components-angular/openvidu- demo-app'
4444
4545 - name : Setup OpenVidu Local Deployment
4646 uses : OpenVidu/actions/start-openvidu-local-deployment@main
@@ -49,16 +49,31 @@ jobs:
4949 openvidu-edition : " community"
5050 - name : Install demo app dependencies
5151 run : |
52- npm install openvidu-components-angular-*.tgz --prefix frontend
52+ cd openvidu-components-angular/openvidu-demo-app
53+ npm install ${{ steps.build.outputs.package_filename }} --prefix frontend
5354 npm install --prefix backend
5455 npm run build --prefix backend
5556 npm run build-prod --prefix frontend
5657 - name : Run demo app
5758 env :
58- CALL_PRIVATE_ACCESS : false
59- run : npm start --prefix backend &
60- - name : Run E2E Auth tests
59+ DEMO_APP_PRIVATE_ACCESS : false
60+ run : npm start --prefix openvidu-components-angular/openvidu-demo-app/backend &
61+ - name : Run Chrome Browser
62+ run : docker run --network=host -d -p 4444:4444 selenium/standalone-chrome:127.0
63+ - name : Wait for Selenium to be ready
64+ run : |
65+ echo "Waiting for Selenium to be ready..."
66+ for i in {1..30}; do
67+ if curl -s http://localhost:4444/wd/hub/status > /dev/null; then
68+ echo "Selenium is ready!"
69+ break
70+ fi
71+ echo "Attempt $i: Selenium not ready yet, waiting..."
72+ sleep 2
73+ done
74+ curl -s http://localhost:4444/wd/hub/status || (echo "Selenium failed to start" && exit 1)
75+ - name : Run E2E Home tests
6176 env :
6277 LAUNCH_MODE : CI
63- run : npm run e2e:auth --prefix frontend
78+ run : npm run e2e:home --prefix openvidu-components-angular/openvidu-demo-app/ frontend
6479
0 commit comments