-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (104 loc) · 3.35 KB
/
main.yaml
File metadata and controls
119 lines (104 loc) · 3.35 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: cws Tests
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y zlib1g-dev
autobahn-full-suite:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: Build Autobahn Server
run: |
sudo WITH_COMPRESSION=1 NO_DEBUG=1 make autobahn && sh check-install.sh
- name: Start Server
run: |
./server &
echo "Starting..." &&
sleep 5
- name: Run Autobahn Test Suite
run: |
cd ./test/autobahn && sudo docker run --rm \
-v "${PWD}/config:/config" -v "${PWD}/reports:/reports" \
--network="host" \
--name fuzzingclient \
crossbario/autobahn-testsuite \
wstest -m fuzzingclient --spec /config/fuzzingclient.json && cd ../../ && \
python3 ./test/autobahn/report.py "test/autobahn/reports/servers/index.json" "cws"
test-suite:
timeout-minutes: 2
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Test Suite
run: sh ./test.sh
e2e:
timeout-minutes: 2
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Test Suite
run: sh ./e2e.sh
autobahn-no-compression:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y zlib1g-dev libssl-dev
- name: Build Autobahn Server
run: |
sudo NO_DEBUG=1 make autobahn
- name: Start Server
run: |
./server &
echo "Starting..." &&
sleep 5
- name: Run Autobahn Test Suite
run: |
cd ./test/autobahn && sudo docker run --rm \
-v "${PWD}/config:/config" -v "${PWD}/reports:/reports" \
--network="host" \
--name fuzzingclient \
crossbario/autobahn-testsuite \
wstest -m fuzzingclient --spec /config/fuzzingclient.json && cd ../../ && \
python3 ./test/autobahn/report.py "test/autobahn/reports/servers/index.json" "cws" --allow-unimplemented
# would be nice to also run autobahn for OSX
# but the time multiplier for OSX on GH actions is ridiculous high at 10x
# and just installing docker takes ~4 minutes (40 minutes after multiplier)
macos-build-and-test:
runs-on: macos-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v3
- name: install and confirm
run: sudo make install && sh ./check-install.sh
- name: Run E2E (Darwin)
run: sh ./e2e.sh -pthread
- name: Run Test Suite (Darwin)
run: sh ./test.sh
freebsd-build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Build, Install and Test (FreeBSD)
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: pkg install -y gmake
run: WITH_PTHREAD=1 gmake install && sh ./check-install.sh && sh ./e2e.sh -pthread