Skip to content

Commit d4d85d1

Browse files
committed
test fix port
1 parent 3170ece commit d4d85d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,14 @@ jobs:
228228
working-directory: examples/with-typescript-nextjs
229229
run: |
230230
npm i
231-
npm run dev &
231+
npx next dev -p 3005 &
232232
sleep 3
233-
node_test=$(curl localhost:3003)
234-
node_test2=$(curl localhost:3003/api/hello)
233+
node_test=$(curl localhost:3005)
234+
node_test2=$(curl localhost:3005/api/hello)
235235
236236
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
237237
echo "✅ node with-typescript-nextjs test passed"
238-
npx kill-port 3003 -y
238+
npx kill-port 3005 -y
239239
exit 0
240240
fi
241241
echo "❌ node with-typescript-nextjs test failed"
@@ -247,13 +247,13 @@ jobs:
247247
if [ "$RUNNER_OS" != "Windows" ]; then
248248
bun i #re-installing dependencies in windows with bash causes a panic
249249
fi
250-
bun run dev &
250+
bun next dev -p 3004 &
251251
sleep 3
252-
bun_test=$(curl localhost:3003)
253-
bun_test2=$(curl localhost:3003/api/hello)
252+
bun_test=$(curl localhost:3004)
253+
bun_test2=$(curl localhost:3004/api/hello)
254254
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
255255
echo "✅ bun with-typescript-nextjs test passed"
256-
npx kill-port 3003 -y
256+
npx kill-port 3004 -y
257257
exit 0
258258
fi
259259
echo "❌ bun with-typescript-nextjs test failed"

0 commit comments

Comments
 (0)