File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 16
16
with :
17
17
node-version : 18
18
18
- run : find . -name 'package-lock.json' -execdir npm ci \;
19
- - run : npm run dev:test
19
+ - run : npm run dev:test &
20
20
- run : npx wait-on tcp:9595
21
21
- run : npm run test
22
22
build-latest :
Original file line number Diff line number Diff line change
1
+ import { spawn } from 'child_process' ;
2
+
3
+ console . log ( 'hello' ) ;
4
+
5
+ const child = spawn ( 'npm' , [ 'run' , 'vitest' ] ) ;
6
+
7
+ child . stdout . on ( 'data' , ( data ) => {
8
+ console . log ( `stdout: ${ data } ` ) ;
9
+ } ) ;
10
+
11
+ child . stderr . on ( 'data' , ( data ) => {
12
+ console . error ( `stderr: ${ data } ` ) ;
13
+ } ) ;
14
+
15
+ child . on ( 'error' , ( error ) => {
16
+ console . error ( 'Failed to start subprocess.' ) ;
17
+ } ) ;
18
+
19
+ child . on ( 'close' , ( code ) => {
20
+ console . log ( `child process exited with code ${ code } ` ) ;
21
+ } ) ;
You can’t perform that action at this time.
0 commit comments