Repository navigation
66 lines (50 loc) · 1.85 KB
/
Copy pathbackend-integration.yml
File metadata and controls
66 lines (50 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: backend integration
on:
push:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: backend-integration-${{ github.ref }}
cancel-in-progress: true
jobs:
backend-gpac:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Bundle backend
run: pnpm exec esbuild server/server.js --bundle --outfile=ci/server.js --format=esm --external:gpaccore --external:std --external:os
- name: Start GPAC
run: |
docker run -d --name gpac --network host -v "$PWD/ci:/srv:ro" --entrypoint gpac gpac/ubuntu:latest \
-rmt -rmt-port=6390 -rmt-localhost -rmt-path=/srv/server.js -logs=rmtws@info \
avgen reframer:rt=on inspect:allp
- name: Monitor config
run: timeout 20 node server/tests/integration/monitorConfig.mjs
- name: Query filter graph
run: timeout 20 node server/tests/integration/getAllFilters.mjs
- name: Session and CPU stats
run: timeout 20 node server/tests/integration/sessionCpuStats.mjs
- name: Filter stats
run: timeout 20 node server/tests/integration/filterStats.mjs
- name: GPAC logs
run: timeout 20 node server/tests/integration/logs.mjs
- name: Client isolation
run: timeout 40 node server/tests/integration/clientIsolation.mjs
- name: GPAC diagnostics
if: always()
run: |
docker run --rm --entrypoint gpac gpac/ubuntu:latest -version || true
docker logs gpac || true
docker rm -f gpac || true