This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 378
83 lines (81 loc) · 3.53 KB
/
webtransport.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: WebTransport E2E Test
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-20.04
services:
rabbitmq:
image: rabbitmq:latest
ports:
- 5672:5672
steps:
- uses: actions/checkout@v2
name: Checkout server code
- uses: actions/checkout@v2
name: Checkout JavaScript SDK and sample
with:
repository: open-webrtc-toolkit/owt-client-javascript
path: third_party/owt-client-javascript/
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- run: npm install
name: Install dependencies for JavaScript SDK
working-directory: third_party/owt-client-javascript/scripts
- run: mkdir -p third_party/quic-transport
name: Create directory for QUIC SDK
- name: Download QUIC SDK
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: ci.yaml
branch: main
event: push
name: quic-sdk-ubuntu-x64-ci
path: third_party/quic-transport
repo: open-webrtc-toolkit/owt-sdk-quic
- name: Generate certificates
run: |
wget https://chromium.googlesource.com/chromium/src/+archive/refs/tags/98.0.4694.2/net/tools/quic/certs.tar.gz
tar xvzf certs.tar.gz
cp ../../../addons/quic/test/scripts/generate-certs.sh ./generate-certs.sh
./generate-certs.sh
openssl pkcs12 -inkey out/leaf_cert.key -in out/leaf_cert.pem -export -out out/leaf_cert.pfx -passout pass:abc123
working-directory: ./source/agent/quic/e2e-test/scripts
- name: Install dependencies
run: ./installDepsUnattended.sh
working-directory: ./scripts
- run: grunt
name: Build JavaScript SDK and sample release package
working-directory: third_party/owt-client-javascript/scripts
- name: Build and pack server
run: |
./scripts/build.js -t quic -t internal-io -t logger -c
./scripts/pack.js -t conference-agent -t quic-agent -t management-api -t cluster-manager -t portal -p third_party/owt-client-javascript/dist/samples/conference -i
- name: Start server
run: |
cp ./source/agent/quic/e2e-test/scripts/out/leaf_cert.pfx dist/quic_agent/cert/certificate.pfx
cp ./source/agent/quic/e2e-test/config/management_api.toml dist/management_api/management_api.toml
cp ./source/agent/quic/e2e-test/config/quic_agent.toml dist/quic_agent/agent.toml
cp ./source/agent/quic/e2e-test/config/portal.toml dist/portal/portal.toml
cp ./source/agent/quic/e2e-test/service/rest_service.js dist/apps/current_app/samplertcservice.js
./dist/bin/init-webtransport.sh
- name: Prepare testing environment
run: python3 prepare.py
working-directory: ./source/agent/quic/e2e-test/scripts
- run: npm install
name: Install dependencies for E2E test
working-directory: ./source/agent/quic/e2e-test
- run: node_modules/karma/bin/karma start e2e-test/config/karma.config.js --cert_fingerprint="$(openssl x509 -noout -fingerprint -sha256 -inform pem -in e2e-test/scripts/out/leaf_cert.pem | cut -c20-124)"
working-directory: ./source/agent/quic
name: Run E2E tests
- uses: actions/upload-artifact@v2
name: Upload log
with:
name: log
path: dist/logs
retention-days: 1
if: ${{ always() }}