8
8
" node-test " :
9
9
name : " Build and test on Node.js"
10
10
runs-on : ubuntu-latest
11
+ env : {"NODE_OPTIONS": "--trace-warnings"}
11
12
steps :
12
13
- name : " Checkout this repo"
13
14
uses : actions/checkout@v3
@@ -35,30 +36,28 @@ jobs:
35
36
- name : " Build"
36
37
run : " npm run build"
37
38
38
- - name : " Test Hrana 1 over WebSockets "
39
+ - name : " Test Hrana 1 over WebSocket "
39
40
run : " python hrana-test-server/server_v1.py npm test"
40
- env :
41
- " URL " : " ws://localhost:8080"
42
- " SERVER " : " test_v1"
43
- - name : " Test Hrana 2 over WebSockets"
41
+ env : {"URL": "ws://localhost:8080", "SERVER": "test_v1"}
42
+ - name : " Test Hrana 2 over WebSocket"
44
43
run : " python hrana-test-server/server_v2.py npm test"
45
- env :
46
- " URL " : " ws://localhost:8080"
47
- " SERVER " : " test_v2"
44
+ env : {"URL": "ws://localhost:8080", "SERVER": "test_v2"}
48
45
- name : " Test Hrana 2 over HTTP"
49
46
run : " python hrana-test-server/server_v2.py npm test"
50
- env :
51
- " URL " : " http://localhost:8080"
52
- " SERVER " : " test_v2"
47
+ env : {"URL": "http://localhost:8080", "SERVER": "test_v2"}
48
+ - name : " Test Hrana 3 over WebSocket"
49
+ run : " python hrana-test-server/server_v3.py npm test"
50
+ env : {"URL": "ws://localhost:8080", "SERVER": "test_v3"}
51
+ - name : " Test Hrana 3 over HTTP"
52
+ run : " python hrana-test-server/server_v3.py npm test"
53
+ env : {"URL": "http://localhost:8080", "SERVER": "test_v3"}
53
54
- name : " Test local file"
54
55
run : " npm test"
55
- env :
56
- " URL " : " file:///tmp/test.db"
56
+ env : {"URL": "file:///tmp/test.db"}
57
57
58
58
- name : " Test example"
59
59
run : " node examples/example.js"
60
- env :
61
- " URL " : " file:///tmp/example.db"
60
+ env : {"URL": "file:///tmp/example.db"}
62
61
63
62
" workers-test " :
64
63
name : " Build and test with Cloudflare Workers"
72
71
- name : " Setup Node.js"
73
72
uses : actions/setup-node@v3
74
73
with :
75
- node-version : " 19.x "
74
+ node-version : " lts/Hydrogen "
76
75
cache : " npm"
77
76
- name : " Install npm dependencies"
78
77
run : " npm ci"
@@ -95,37 +94,37 @@ jobs:
95
94
- name : " Install npm dependencies of the Workers test"
96
95
run : " cd smoke_test/workers && npm link ../.."
97
96
98
- - name : " Local test with Hrana 1 over WebSockets "
97
+ - name : " Local test with Hrana 1 over WebSocket "
99
98
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v1.py node test.js"
100
- env :
101
- " LOCAL " : " 1"
102
- " URL " : " ws://localhost:8080"
103
- - name : " Local test with Hrana 2 over WebSockets"
99
+ env : {"LOCAL": "1", "URL": "ws://localhost:8080"}
100
+ - name : " Local test with Hrana 2 over WebSocket"
104
101
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v2.py node test.js"
105
- env :
106
- " LOCAL " : " 1"
107
- " URL " : " ws://localhost:8080"
102
+ env : {"LOCAL": "1", "URL": "ws://localhost:8080"}
108
103
- name : " Local test with Hrana 2 over HTTP"
109
104
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v2.py node test.js"
110
- env :
111
- " LOCAL " : " 1"
112
- " URL " : " http://localhost:8080"
105
+ env : {"LOCAL": "1", "URL": "http://localhost:8080"}
106
+ - name : " Local test with Hrana 3 over WebSocket"
107
+ run : " cd smoke_test/workers && python ../../hrana-test-server/server_v3.py node test.js"
108
+ env : {"LOCAL": "1", "URL": "ws://localhost:8080"}
109
+ - name : " Local test with Hrana 3 over HTTP"
110
+ run : " cd smoke_test/workers && python ../../hrana-test-server/server_v3.py node test.js"
111
+ env : {"LOCAL": "1", "URL": "http://localhost:8080"}
113
112
114
- - name : " Non-local test with Hrana 1 over WebSockets "
113
+ - name : " Non-local test with Hrana 1 over WebSocket "
115
114
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v1.py node test.js"
116
- env :
117
- " LOCAL " : " 0"
118
- " URL " : " ws://localhost:8080"
119
- - name : " Non-local test with Hrana 2 over WebSockets"
115
+ env : {"LOCAL": "0", "URL": "ws://localhost:8080"}
116
+ - name : " Non-local test with Hrana 2 over WebSocket"
120
117
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v2.py node test.js"
121
- env :
122
- " LOCAL " : " 0"
123
- " URL " : " ws://localhost:8080"
118
+ env : {"LOCAL": "0", "URL": "ws://localhost:8080"}
124
119
- name : " Non-local test with Hrana 2 over HTTP"
125
120
run : " cd smoke_test/workers && python ../../hrana-test-server/server_v2.py node test.js"
126
- env :
127
- " LOCAL " : " 0"
128
- " URL " : " http://localhost:8080"
121
+ env : {"LOCAL": "0", "URL": "http://localhost:8080"}
122
+ - name : " Non-local test with Hrana 3 over WebSocket"
123
+ run : " cd smoke_test/workers && python ../../hrana-test-server/server_v3.py node test.js"
124
+ env : {"LOCAL": "0", "URL": "ws://localhost:8080"}
125
+ - name : " Non-local test with Hrana 3 over HTTP"
126
+ run : " cd smoke_test/workers && python ../../hrana-test-server/server_v3.py node test.js"
127
+ env : {"LOCAL": "0", "URL": "http://localhost:8080"}
129
128
130
129
" vercel-test " :
131
130
name : " Build and test with Vercel Edge Functions"
@@ -139,7 +138,7 @@ jobs:
139
138
- name : " Setup Node.js"
140
139
uses : actions/setup-node@v3
141
140
with :
142
- node-version : " 19.x "
141
+ node-version : " lts/Hydrogen "
143
142
cache : " npm"
144
143
- name : " Install npm dependencies"
145
144
run : " npm ci"
@@ -162,15 +161,18 @@ jobs:
162
161
- name : " Install npm dependencies of the Vercel test"
163
162
run : " cd smoke_test/vercel && npm install"
164
163
165
- - name : " Test with Hrana 1 over WebSockets "
164
+ - name : " Test with Hrana 1 over WebSocket "
166
165
run : " cd smoke_test/vercel && python ../../hrana-test-server/server_v1.py node test.js"
167
- env :
168
- " URL " : " ws://localhost:8080"
169
- - name : " Test with Hrana 2 over WebSockets"
166
+ env : {"URL": "ws://localhost:8080"}
167
+ - name : " Test with Hrana 2 over WebSocket"
170
168
run : " cd smoke_test/vercel && python ../../hrana-test-server/server_v2.py node test.js"
171
- env :
172
- " URL " : " ws://localhost:8080"
169
+ env : {"URL": "ws://localhost:8080"}
173
170
- name : " Test with Hrana 2 over HTTP"
174
171
run : " cd smoke_test/vercel && python ../../hrana-test-server/server_v2.py node test.js"
175
- env :
176
- " URL " : " http://localhost:8080"
172
+ env : {"URL": "http://localhost:8080"}
173
+ - name : " Test with Hrana 3 over WebSocket"
174
+ run : " cd smoke_test/vercel && python ../../hrana-test-server/server_v3.py node test.js"
175
+ env : {"URL": "ws://localhost:8080"}
176
+ - name : " Test with Hrana 3 over HTTP"
177
+ run : " cd smoke_test/vercel && python ../../hrana-test-server/server_v3.py node test.js"
178
+ env : {"URL": "http://localhost:8080"}
0 commit comments