-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 1.48 KB
/
tests.yml
File metadata and controls
58 lines (44 loc) · 1.48 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
name: ICE TESTS
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
tools: composer:v2
- name: Install dependencies
run: composer install
- name: Install and configure Coturn
run: |
sudo apt-get update
sudo apt-get install -y coturn
# Stop any running Coturn service first
sudo systemctl stop coturn || true
# Create directories and copy files
sudo mkdir -p /etc/turnserver
sudo cp tests/turnconfig/turnserver.conf /etc/turnserver/
sudo cp tests/turnconfig/turnserver.crt /etc/turnserver/
sudo cp tests/turnconfig/turnserver.key /etc/turnserver/
# Create log directory
sudo mkdir -p /var/log/
sudo touch /var/log/turnserver.log
sudo chmod 666 /var/log/turnserver.log
# Start Coturn with our custom config
sudo turnserver -c /etc/turnserver/turnserver.conf -v &
# Wait for server to start
sleep 5
# Verify server is running
ps aux | grep turnserver
netstat -tulnp | grep -E '3478|5349'
- name: Run PHPUnit tests
run: vendor/bin/phpunit