ci: add backend and webcomponent integration test workflows

This commit is contained in:
Carlos Santos 2025-05-08 16:12:45 +02:00
parent c60d0ad235
commit 468278d9d1
4 changed files with 32 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: Integration Tests
name: Backend Integration Tests
on: [push, pull_request]
jobs:

View File

@ -1,9 +1,9 @@
name: Unit Tests
name: Backend Unit Tests
on: [push, pull_request]
jobs:
unit-test:
name: Unit Tests
name: Backend Unit Tests
runs-on: ov-actions-runner
steps:
- name: Setup Node.js

28
.github/workflows/wc-unit-test.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
name: WebComponent Unit Tests
on: [push, pull_request]
jobs:
unit-test:
name: WebComponent Unit Tests
runs-on: ov-actions-runner
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Checkout OpenVidu Meet
uses: actions/checkout@v4
- name: Setup OpenVidu Meet WebComponent
shell: bash
run: |
./prepare.sh
cd frontend/webcomponent
npm install
- name: Run tests
run: |
cd frontend/webcomponent
npm run test:unit
- name: Clean up
if: always()
uses: ./.github/actions/cleanup

View File

@ -4,7 +4,7 @@
"main": "index.js",
"scripts": {
"build": "npm install && rollup -c",
"test": "jest",
"test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci",
"test:e2e": "playwright test",
"lint": "eslint 'src/**/*.ts'"
},