39
39
- name : Upload Code Coverage
40
40
uses : codecov/codecov-action@v4
41
41
env :
42
- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
42
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
43
43
44
44
examples-test :
45
45
needs : code-test
@@ -129,17 +129,7 @@ jobs:
129
129
working-directory : examples/with-plain-javascript
130
130
run : |
131
131
npm i
132
- echo "Dependencies installed"
133
- app_log=$(mktemp)
134
- npm start > "$app_log" 2>&1 &
135
-
136
- app_pid=$!
137
- echo "App started"
138
- sleep 3
139
- kill "$app_pid" 2>/dev/null
140
-
141
- node_test=$(<"$app_log")
142
- rm "$app_log"
132
+ node_test=$(npm start)
143
133
144
134
if [[ "$node_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
145
135
echo "✅ node with-plain-javascript test passed"
@@ -154,15 +144,8 @@ jobs:
154
144
if [ "$RUNNER_OS" != "Windows" ]; then
155
145
bun i #re-installing dependencies in windows with bash causes a panic
156
146
fi
157
- app_log=$(mktemp)
158
- bun start > "$app_log" 2>&1 &
159
-
160
- app_pid=$!
161
- sleep 3
162
- kill "$app_pid" 2>/dev/null
163
-
164
- bun_test=$(<"$app_log")
165
- rm "$app_log"
147
+
148
+ bun_test=$(bun start)
166
149
167
150
if [[ "$bun_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
168
151
echo "✅ bun with-plain-javascript test passed"
@@ -174,15 +157,7 @@ jobs:
174
157
- name : deno with-plain-javascript
175
158
working-directory : examples/with-plain-javascript
176
159
run : |
177
- app_log=$(mktemp)
178
- deno run start > "$app_log" 2>&1 &
179
-
180
- app_pid=$!
181
- sleep 3
182
- kill "$app_pid" 2>/dev/null
183
-
184
- deno_test=$(<"$app_log")
185
- rm "$app_log"
160
+ deno_test=$(deno run start)
186
161
187
162
if [[ "$deno_test" == *"Composer: 'Angus Young, Malcolm Young, Brian Johnson',"* ]]; then
188
163
echo "✅ deno with-plain-javascript test passed"
@@ -491,8 +466,8 @@ jobs:
491
466
xcode-version : 14.3
492
467
493
468
- name : build driver
494
- # distutils is required for the driver build and it was removed since python 3.13
495
- run : python3 -m pip install setuptools && 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
496
471
497
472
- name : install driver
498
473
working-directory : examples/with-javascript-expo
0 commit comments