-
-
Notifications
You must be signed in to change notification settings - Fork 56
101 lines (96 loc) · 3.28 KB
/
engineio-ci.yml
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
name: EngineIO CI
on:
push:
tags:
- v*
pull_request:
branches:
- main
jobs:
e2e_v3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v3
with:
repository: socketio/engine.io-protocol
path: engine.io-protocol
ref: v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install deps & run tests
run: |
cd engine.io-protocol/test-suite && npm install && cd ../..
cargo build --bin engineioxide-e2e --release --features engineio-v3 --no-default-features
cargo run --bin engineioxide-e2e --release --features engineio-v3 --no-default-features > server.txt & npm --prefix engine.io-protocol/test-suite test > client.txt
- name: Server output
if: always()
run: cat server.txt
- name: Client output
if: always()
run: cat client.txt
e2e_v4:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v3
with:
repository: socketio/engine.io-protocol
path: engine.io-protocol
ref: main
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install deps & run tests
run: |
cd engine.io-protocol/test-suite && npm install && cd ../..
cargo build --bin engineioxide-e2e --release --features engineio-v4 --no-default-features
cargo run --bin engineioxide-e2e --release --features engineio-v4 --no-default-features > server.txt & npm --prefix engine.io-protocol/test-suite test > client.txt
- name: Server output
if: always()
run: cat server.txt
- name: Client output
if: always()
run: cat client.txt
e2e_full:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v3
with:
repository: socketio/engine.io-protocol
path: engine.io-protocol-v3
ref: v3
- uses: actions/checkout@v3
with:
repository: socketio/engine.io-protocol
path: engine.io-protocol-v4
ref: main
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install deps & run tests
run: |
cd engine.io-protocol-v3/test-suite && npm install && cd ../..
cd engine.io-protocol-v4/test-suite && npm install && cd ../..
cargo build --bin engineioxide-e2e --release --features engineio-v3,engineio-v4 --no-default-features
cargo run --bin engineioxide-e2e --release --features engineio-v3,engineio-v4 --no-default-features > server.txt & npm --prefix engine.io-protocol-v4/test-suite test > client_v4.txt & npm --prefix engine.io-protocol-v3/test-suite test > client_v3.txt
- name: Server output
if: always()
run: cat server.txt
- name: Client v3 output
if: always()
run: cat client_v3.txt
- name: Client v4 output
if: always()
run: cat client_v4.txt