ci: add backend and webcomponent integration test workflows
This commit is contained in:
parent
c60d0ad235
commit
468278d9d1
@ -1,4 +1,4 @@
|
||||
name: Integration Tests
|
||||
name: Backend Integration Tests
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
@ -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
28
.github/workflows/wc-unit-test.yaml
vendored
Normal 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
|
||||
@ -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'"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user