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
+17-12
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
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 3005 -y
235
239
exit 0
236
240
fi
237
241
echo "❌ node with-typescript-nextjs test failed"
@@ -243,13 +247,13 @@ jobs:
243
247
if [ "$RUNNER_OS" != "Windows" ]; then
244
248
bun i #re-installing dependencies in windows with bash causes a panic
245
249
fi
246
-
bun run dev &
250
+
bun next dev -p 3004 &
247
251
sleep 3
248
-
bun_test=$(curl localhost:3003)
249
-
bun_test2=$(curl localhost:3003/api/hello)
252
+
bun_test=$(curl localhost:3004)
253
+
bun_test2=$(curl localhost:3004/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 3004 -y
253
257
exit 0
254
258
fi
255
259
echo "❌ bun with-typescript-nextjs test failed"
@@ -264,13 +268,14 @@ 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
Copy file name to clipboardExpand all lines: examples/with-typescript-react-native/App.tsx
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ export default function App() {
11
11
constdb=newDatabase(`${DATABASE_URL}`);
12
12
13
13
constresult=
14
-
awaitdb.sql`USE DATABASE chinook.sqlite; SELECT albums.AlbumId as id, albums.Title as title, artists.name as artist FROM albums INNER JOIN artists WHERE artists.ArtistId = albums.ArtistId LIMIT 20;`;
14
+
awaitdb.sql('USE DATABASE chinook.sqlite; SELECT albums.AlbumId as id, albums.Title as title, artists.name as artist FROM albums INNER JOIN artists WHERE artists.ArtistId = albums.ArtistId LIMIT 20;');
0 commit comments