You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/test.yml
+10-6
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@ on:
3
3
push:
4
4
workflow_dispatch:
5
5
6
+
concurrency:
7
+
group: all
8
+
cancel-in-progress: true
9
+
6
10
env:
7
11
DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
8
12
@@ -81,7 +85,7 @@ jobs:
81
85
node_test=$(curl localhost:3000)
82
86
if [[ $node_test == *"{\"tracks\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
83
87
echo "✅ node with-javascript-express test passed"
84
-
npx kill-port 3000
88
+
npx kill-port 3000 -y
85
89
exit 0
86
90
fi
87
91
echo "❌ node with-javascript-express test failed"
@@ -98,7 +102,7 @@ jobs:
98
102
bun_test=$(curl localhost:3000)
99
103
if [[ $bun_test == *"{\"tracks\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
100
104
echo "✅ bun with-javascript-express test passed"
101
-
npx kill-port 3000
105
+
npx kill-port 3000 -y
102
106
exit 0
103
107
fi
104
108
echo "❌ bun with-javascript-express test failed"
@@ -112,7 +116,7 @@ jobs:
112
116
deno_test=$(curl localhost:3000)
113
117
if [[ $deno_test == *"{\"tracks\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
114
118
echo "✅ deno with-javascript-express test passed"
115
-
npx kill-port 3000
119
+
npx kill-port 3000 -y
116
120
exit 0
117
121
fi
118
122
echo "❌ deno with-javascript-express test failed"
@@ -231,7 +235,7 @@ jobs:
231
235
232
236
if [[ $node_test == *"next.js json route"* && $node_test2 == *"{\"data\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
233
237
echo "✅ node with-typescript-nextjs test passed"
234
-
npx kill-port 3003
238
+
npx kill-port 3003 -y
235
239
exit 0
236
240
fi
237
241
echo "❌ node with-typescript-nextjs test failed"
@@ -249,7 +253,7 @@ jobs:
249
253
bun_test2=$(curl localhost:3003/api/hello)
250
254
if [[ $bun_test == *"next.js json route"* && $bun_test2 == *"{\"data\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
251
255
echo "✅ bun with-typescript-nextjs test passed"
252
-
npx kill-port 3003
256
+
npx kill-port 3003 -y
253
257
exit 0
254
258
fi
255
259
echo "❌ bun with-typescript-nextjs test failed"
@@ -264,7 +268,7 @@ jobs:
264
268
deno_test=$(curl localhost:3003/api/hello)
265
269
if [[ $deno_test == *"{\"data\":[{\"TrackId\":1,\"Name\":\"For Those About To Rock (We Salute You)\",\"AlbumId\":1,\"MediaTypeId\":1,\"GenreId\":1,\"Composer\":\"Angus Young, Malcolm Young, Brian Johnson\",\"Milliseconds\":343719,\"Bytes\":11170334,\"UnitPrice\":0.99},{"* ]]; then
0 commit comments