Skip to content

Commit 6aac58f

Browse files
committed
Add workflow to run all tests in loadtest-controller
1 parent f32ae46 commit 6aac58f

2 files changed

Lines changed: 35 additions & 26 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Loadtest Controller Unit And Integration Tests
2+
3+
on:
4+
push:
5+
paths:
6+
- 'loadtest-controller/**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
unit-test:
11+
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
12+
container:
13+
image: maven:3.9.14-eclipse-temurin-25-alpine
14+
options: --user root
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
19+
- name: Build and unit tests
20+
run: |
21+
cd loadtest-controller
22+
mvn clean test -Dtest='io.openvidu.loadtest.unit.*'
23+
24+
- name: Run integration tests
25+
run: |
26+
cd loadtest-controller
27+
mvn test -Dtest='io.openvidu.loadtest.integration.*'
28+
29+
cleanup:
30+
needs: unit-test
31+
if: ${{ always() }}
32+
runs-on: ${{ vars.LABEL_WORKER_SELFHOSTED }}
33+
steps:
34+
- name: Clean up
35+
uses: OpenVidu/actions/cleanup@35d136377813cf9b0b23d12d16d57864ccf3a8c2 # v1.0.2

.github/workflows/loadtest-controller-unit-test.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)