Skip to content

Commit 3170ece

Browse files
committed
test fix port killer, dependabot and workflow group
1 parent bbd7c23 commit 3170ece

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/dependabot.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
33
version: 2
44
updates:
5-
- package-ecosystem: "npm"
6-
directory: "/" # Location of package.json
5+
- package-ecosystem: 'npm'
6+
directory: '/' # Location of package.json
77
schedule:
8-
interval: "weekly"
8+
interval: 'weekly'
9+
groups:
10+
all-dependencies:
11+
patterns:
12+
- '*'
913
# Always increase the version requirement
1014
# to match the new version.
1115
versioning-strategy: increase

.github/workflows/test.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
workflow_dispatch:
55

6+
concurrency:
7+
group: all
8+
cancel-in-progress: true
9+
610
env:
711
DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
812

@@ -81,7 +85,7 @@ jobs:
8185
node_test=$(curl localhost:3000)
8286
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
8387
echo "✅ node with-javascript-express test passed"
84-
npx kill-port 3000
88+
npx kill-port 3000 -y
8589
exit 0
8690
fi
8791
echo "❌ node with-javascript-express test failed"
@@ -98,7 +102,7 @@ jobs:
98102
bun_test=$(curl localhost:3000)
99103
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
100104
echo "✅ bun with-javascript-express test passed"
101-
npx kill-port 3000
105+
npx kill-port 3000 -y
102106
exit 0
103107
fi
104108
echo "❌ bun with-javascript-express test failed"
@@ -112,7 +116,7 @@ jobs:
112116
deno_test=$(curl localhost:3000)
113117
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
114118
echo "✅ deno with-javascript-express test passed"
115-
npx kill-port 3000
119+
npx kill-port 3000 -y
116120
exit 0
117121
fi
118122
echo "❌ deno with-javascript-express test failed"
@@ -231,7 +235,7 @@ jobs:
231235
232236
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
233237
echo "✅ node with-typescript-nextjs test passed"
234-
npx kill-port 3003
238+
npx kill-port 3003 -y
235239
exit 0
236240
fi
237241
echo "❌ node with-typescript-nextjs test failed"
@@ -249,7 +253,7 @@ jobs:
249253
bun_test2=$(curl localhost:3003/api/hello)
250254
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
251255
echo "✅ bun with-typescript-nextjs test passed"
252-
npx kill-port 3003
256+
npx kill-port 3003 -y
253257
exit 0
254258
fi
255259
echo "❌ bun with-typescript-nextjs test failed"
@@ -264,7 +268,7 @@ jobs:
264268
deno_test=$(curl localhost:3003/api/hello)
265269
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
266270
echo "✅ deno with-typescript-nextjs test passed"
267-
npx kill-port 3003
271+
npx kill-port 3003 -y
268272
exit 0
269273
fi
270274
echo "❌ deno with-typescript-nextjs test failed"

0 commit comments

Comments
 (0)