ci: add users API tests in integration tests workflow
This commit is contained in:
parent
129be42152
commit
89295dda93
31
.github/workflows/backend-integration-test.yaml
vendored
31
.github/workflows/backend-integration-test.yaml
vendored
@ -255,6 +255,37 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: OpenVidu/actions/cleanup@main
|
uses: OpenVidu/actions/cleanup@main
|
||||||
|
|
||||||
|
test-users:
|
||||||
|
name: Users API Tests
|
||||||
|
runs-on: ov-actions-runner
|
||||||
|
steps:
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '22.13'
|
||||||
|
- name: Install LK CLI
|
||||||
|
run: curl -sSL https://get.livekit.io/cli | bash
|
||||||
|
- name: Setup OpenVidu Local Deployment
|
||||||
|
uses: OpenVidu/actions/start-openvidu-local-deployment@main
|
||||||
|
- name: Setup OpenVidu Meet
|
||||||
|
uses: OpenVidu/actions/start-openvidu-meet@main
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
cd backend
|
||||||
|
npm run test:integration-users
|
||||||
|
env:
|
||||||
|
JEST_JUNIT_OUTPUT_DIR: './reports/'
|
||||||
|
- name: Publish Test Report
|
||||||
|
uses: mikepenz/action-junit-report@v4
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
report_paths: '**/reports/junit.xml'
|
||||||
|
fail_on_failure: true
|
||||||
|
require_tests: true
|
||||||
|
- name: Clean up
|
||||||
|
if: always()
|
||||||
|
uses: OpenVidu/actions/cleanup@main
|
||||||
|
|
||||||
stop-runner:
|
stop-runner:
|
||||||
name: Stop EC2 runner
|
name: Stop EC2 runner
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
@ -44,6 +44,7 @@
|
|||||||
"test:integration-global-preferences": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/global-preferences\" --ci --reporters=default --reporters=jest-junit",
|
"test:integration-global-preferences": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/global-preferences\" --ci --reporters=default --reporters=jest-junit",
|
||||||
"test:integration-participants": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/participants\" --ci --reporters=default --reporters=jest-junit",
|
"test:integration-participants": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/participants\" --ci --reporters=default --reporters=jest-junit",
|
||||||
"test:integration-meetings": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/meetings\" --ci --reporters=default --reporters=jest-junit",
|
"test:integration-meetings": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/meetings\" --ci --reporters=default --reporters=jest-junit",
|
||||||
|
"test:integration-users": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/integration/api/users\" --ci --reporters=default --reporters=jest-junit",
|
||||||
"test:unit": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/unit\" --ci --reporters=default --reporters=jest-junit",
|
"test:unit": "node --experimental-vm-modules node_modules/.bin/jest --runInBand --forceExit --testPathPattern \"tests/unit\" --ci --reporters=default --reporters=jest-junit",
|
||||||
"lint:fix": "eslint src --fix",
|
"lint:fix": "eslint src --fix",
|
||||||
"format:code": "prettier --ignore-path .gitignore --write '**/*.{ts,js,json,md}'"
|
"format:code": "prettier --ignore-path .gitignore --write '**/*.{ts,js,json,md}'"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user