|
| 1 | +name: E2E Test Angular Components tutorials |
| 2 | +on: |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + workflow_dispatch: |
| 6 | + |
| 7 | +jobs: |
| 8 | + build_and_start_tutorials: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + |
| 11 | + steps: |
| 12 | + - name: Checkout repository |
| 13 | + uses: actions/checkout@v4 |
| 14 | + |
| 15 | + - name: Set up Node.js |
| 16 | + uses: actions/setup-node@v4 |
| 17 | + with: |
| 18 | + node-version: '22' |
| 19 | + |
| 20 | + - name: Run tests |
| 21 | + run: | |
| 22 | + cd openvidu-components-angular/test |
| 23 | + npm install |
| 24 | + ./run-test.sh |
| 25 | +
|
| 26 | + demo_app_e2e_test: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - name: Checkout repository |
| 30 | + uses: actions/checkout@v4 |
| 31 | + - name: Set up Node.js |
| 32 | + uses: actions/setup-node@v4 |
| 33 | + with: |
| 34 | + node-version: '22' |
| 35 | + - name: Build OpenVidu Components Angular |
| 36 | + id: build |
| 37 | + uses: OpenVidu/actions/build-openvidu-components-angular@main |
| 38 | + |
| 39 | + - name: Download OpenVidu Components Angular package |
| 40 | + uses: actions/download-artifact@v4 |
| 41 | + with: |
| 42 | + name: ${{ steps.build.outputs.artifact_name }} |
| 43 | + path: './openvidu-demo-app' |
| 44 | + |
| 45 | + - name: Setup OpenVidu Local Deployment |
| 46 | + uses: OpenVidu/actions/start-openvidu-local-deployment@main |
| 47 | + with: |
| 48 | + ref-openvidu-local-deployment: "development" |
| 49 | + openvidu-edition: "community" |
| 50 | + - name: Install demo app dependencies |
| 51 | + run: | |
| 52 | + npm install openvidu-components-angular-*.tgz --prefix frontend |
| 53 | + npm install --prefix backend |
| 54 | + npm run build --prefix backend |
| 55 | + npm run build-prod --prefix frontend |
| 56 | + - name: Run demo app |
| 57 | + env: |
| 58 | + CALL_PRIVATE_ACCESS: false |
| 59 | + run: npm start --prefix backend & |
| 60 | + - name: Run E2E Auth tests |
| 61 | + env: |
| 62 | + LAUNCH_MODE: CI |
| 63 | + run: npm run e2e:auth --prefix frontend |
| 64 | + |
0 commit comments