ci: Commented webcomponent tests

pull/839/head
Carlos Santos 2024-07-26 13:26:53 +02:00
parent 9f7efd8ad5
commit 27644e8fa5
1 changed files with 45 additions and 45 deletions

View File

@ -97,48 +97,48 @@ jobs:
- name: Run openvidu-components-angular E2E - name: Run openvidu-components-angular E2E
run: npm run lib:e2e-ci --prefix openvidu-components-angular run: npm run lib:e2e-ci --prefix openvidu-components-angular
webcomponent_e2e: # webcomponent_e2e:
needs: test_setup # needs: test_setup
name: Webcomponent E2E CE tests # name: Webcomponent E2E CE tests
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Checkout Repository # - name: Checkout Repository
uses: actions/checkout@v4 # uses: actions/checkout@v4
with: # with:
ref: ${{ inputs.commit_sha || github.sha }} # ref: ${{ inputs.commit_sha || github.sha }}
- name: Setup Node.js # - name: Setup Node.js
uses: actions/setup-node@v4 # uses: actions/setup-node@v4
with: # with:
node-version: '20' # node-version: '20'
- name: Run Browserless Chrome # - name: Run Browserless Chrome
run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable # run: docker run -d -p 3000:3000 --network host browserless/chrome:1.57-chrome-stable
- name: Run openvidu-local-deployment # - name: Run openvidu-local-deployment
run: | # run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment # git clone --depth 1 https://github.com/OpenVidu/openvidu-local-deployment
cd openvidu-local-deployment/community # cd openvidu-local-deployment/community
./configure_lan_private_ip_linux.sh # ./configure_lan_private_ip_linux.sh
docker compose up -d # docker compose up -d
- name: Wait for openvidu-local-deployment # - name: Wait for openvidu-local-deployment
run: | # run: |
until curl -s -f -o /dev/null http://localhost:7880; do # until curl -s -f -o /dev/null http://localhost:7880; do
echo "Waiting for openvidu-local-deployment to be ready..." # echo "Waiting for openvidu-local-deployment to be ready..."
sleep 5 # sleep 5
done # done
- name: Run openvidu-call-backend # - name: Run openvidu-call-backend
run: | # run: |
git clone --depth 1 https://github.com/OpenVidu/openvidu-call # git clone --depth 1 https://github.com/OpenVidu/openvidu-call
cd openvidu-call/openvidu-call-back # cd openvidu-call/openvidu-call-back
npm install # npm install
npm run dev:start & # npm run dev:start &
- name: Install dependencies # - name: Install dependencies
run: | # run: |
cd openvidu-components-angular # cd openvidu-components-angular
npm install # npm install
- name: Build openvidu-angular # - name: Build openvidu-angular
run: npm run lib:build --prefix openvidu-components-angular # run: npm run lib:build --prefix openvidu-components-angular
- name: Build openvidu-webcomponent # - name: Build openvidu-webcomponent
run: npm run webcomponent:build --prefix openvidu-components-angular # run: npm run webcomponent:build --prefix openvidu-components-angular
- name: Serve Webcomponent Testapp # - name: Serve Webcomponent Testapp
run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular & # run: npm run webcomponent:serve-testapp --prefix openvidu-components-angular &
- name: Run Webcomponent E2E # - name: Run Webcomponent E2E
run: npm run webcomponent:e2e-ci --prefix openvidu-components-angular # run: npm run webcomponent:e2e-ci --prefix openvidu-components-angular