3939 - name : Upload Code Coverage
4040 uses : codecov/codecov-action@v4
4141 env :
42- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
42+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
4343
4444 examples-test :
4545 needs : code-test
@@ -123,21 +123,13 @@ jobs:
123123 exit 1
124124
125125 - name : remove with-javascript-express
126- run : rm -rf examples/with-javascript-express
126+ run : rm -rf examples/with-javascript-express/*
127127
128128 - name : node with-plain-javascript
129129 working-directory : examples/with-plain-javascript
130130 run : |
131131 npm i
132- app_log=$(mktemp)
133- npm start > "$app_log" 2>&1 &
134-
135- app_pid=$!
136- sleep 3
137- kill "$app_pid" 2>/dev/null
138-
139- node_test=$(<"$app_log")
140- rm "$app_log"
132+ node_test=$(npm start)
141133
142134 if [[ "$node_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
143135 echo "✅ node with-plain-javascript test passed"
@@ -152,15 +144,8 @@ jobs:
152144 if [ "$RUNNER_OS" != "Windows" ]; then
153145 bun i #re-installing dependencies in windows with bash causes a panic
154146 fi
155- app_log=$(mktemp)
156- bun start > "$app_log" 2>&1 &
157-
158- app_pid=$!
159- sleep 3
160- kill "$app_pid" 2>/dev/null
161-
162- bun_test=$(<"$app_log")
163- rm "$app_log"
147+
148+ bun_test=$(bun start)
164149
165150 if [[ "$bun_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
166151 echo "✅ bun with-plain-javascript test passed"
@@ -172,15 +157,7 @@ jobs:
172157 - name : deno with-plain-javascript
173158 working-directory : examples/with-plain-javascript
174159 run : |
175- app_log=$(mktemp)
176- deno run start > "$app_log" 2>&1 &
177-
178- app_pid=$!
179- sleep 3
180- kill "$app_pid" 2>/dev/null
181-
182- deno_test=$(<"$app_log")
183- rm "$app_log"
160+ deno_test=$(deno run start)
184161
185162 if [[ "$deno_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
186163 echo "✅ deno with-plain-javascript test passed"
@@ -191,7 +168,7 @@ jobs:
191168
192169 - name : remove with-plain-javascript
193170 if : matrix.os != 'windows-latest' # kill command doesn not work on windows with bash, we can skip this step
194- run : rm -rf examples/with-plain-javascript
171+ run : rm -rf examples/with-plain-javascript/*
195172
196173 - name : node with-typescript-knex
197174 working-directory : examples/with-typescript-knex
@@ -222,7 +199,7 @@ jobs:
222199 exit 1
223200
224201 - name : remove with-typescript-knex
225- run : rm -rf examples/with-typescript-knex
202+ run : rm -rf examples/with-typescript-knex/*
226203
227204 - name : node with-typescript-nextjs
228205 working-directory : examples/with-typescript-nextjs
@@ -275,8 +252,7 @@ jobs:
275252 exit 1
276253
277254 - name : remove with-typescript-nextjs
278- if : matrix.os != 'ubuntu-latest' # rm: cannot remove examples/with-typescript-nextjs: Directory not empty
279- run : rm -rf examples/with-typescript-nextjs
255+ run : rm -rf examples/with-typescript-nextjs/*
280256
281257 - name : node with-javascript-vite
282258 if : matrix.os != 'LinuxARM64'
@@ -305,7 +281,7 @@ jobs:
305281 PW_DISABLE_TS_ESM : true
306282
307283 - name : remove with-javascript-vite
308- run : rm -rf examples/with-javascript-vite
284+ run : rm -rf examples/with-javascript-vite/*
309285
310286 - name : node with-javascript-browser
311287 if : matrix.os != 'LinuxARM64'
@@ -326,7 +302,7 @@ jobs:
326302 command : cd examples/with-javascript-browser && deno --allow-all test.cjs
327303
328304 - name : remove with-javascript-browser
329- run : rm -rf examples/with-javascript-browser
305+ run : rm -rf examples/with-javascript-browser/*
330306
331307 rn-ios-test :
332308 needs : code-test
@@ -362,7 +338,8 @@ jobs:
362338 xcode-version : 14.3
363339
364340 - name : build driver
365- run : npm i && npm run build && echo "DRIVER=$(npm pack --json | jq '.[0].filename')" >> $GITHUB_ENV
341+ # distutils is required for the driver build (dep. `node-gyp`) and it was removed since python 3.13
342+ run : brew install python-setuptools && npm i && npm run build && echo "DRIVER=$(npm pack --json | jq '.[0].filename')" >> $GITHUB_ENV
366343
367344 - name : install driver
368345 working-directory : examples/with-typescript-react-native
@@ -489,7 +466,8 @@ jobs:
489466 xcode-version : 14.3
490467
491468 - name : build driver
492- run : npm i && npm run build && echo "DRIVER=$(npm pack --json | jq '.[0].filename')" >> $GITHUB_ENV
469+ # distutils is required for the driver build (dep. `node-gyp`) and it was removed since python 3.13
470+ run : brew install python-setuptools && npm i && npm run build && echo "DRIVER=$(npm pack --json | jq '.[0].filename')" >> $GITHUB_ENV
493471
494472 - name : install driver
495473 working-directory : examples/with-javascript-expo
0 commit comments