File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 10
10
timeout-minutes : 15
11
11
env :
12
12
VITE_ALCHEMY_API_KEY : ${{ secrets.VITE_ALCHEMY_API_KEY }}
13
+ HARDHAT_KEEPALIVE : ' true'
13
14
14
15
steps :
15
16
- name : Checkout
35
36
with :
36
37
timeout_minutes : 20
37
38
max_attempts : 3
38
- command : npx turbo test:ci --cache-dir=".cache" --concurrency=1 --filter="./examples/zora-mint"
39
+ command : npx turbo test:ci --cache-dir=".cache" --concurrency=1 --filter="./examples/*" || kill $(lsof -t -i:8545)
Original file line number Diff line number Diff line change @@ -41,17 +41,17 @@ function createHardhatProcess(): Promise<ChildProcessWithoutNullStreams> {
41
41
42
42
export async function setup ( { } : GlobalSetupContext ) {
43
43
const pids = await findProcess ( 'port' , 8545 ) ;
44
- let process : ChildProcessWithoutNullStreams ;
44
+ let proc : ChildProcessWithoutNullStreams ;
45
45
if ( pids . length )
46
46
console . log ( 'hardhat process already running, not starting a new one' ) ;
47
47
else {
48
- process = await createHardhatProcess ( ) ;
48
+ proc = await createHardhatProcess ( ) ;
49
49
console . log ( 'hardhat started successfully' ) ;
50
50
}
51
51
52
52
return function ( ) {
53
- if ( process && ! process . killed ) {
54
- process . kill ( ) ;
53
+ if ( ! process . env . HARDHAT_KEEPALIVE && proc && ! proc . killed ) {
54
+ proc . kill ( ) ;
55
55
}
56
56
} ;
57
57
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://turbo.build/schema.json" ,
3
- "globalPassThroughEnv" : [" VITE_ALCHEMY_API_KEY" ],
3
+ "globalPassThroughEnv" : [" VITE_ALCHEMY_API_KEY" , " HARDHAT_KEEPALIVE " ],
4
4
"tasks" : {
5
5
"build" : {
6
6
"dependsOn" : [" ^build" ],
You can’t perform that action at this time.
0 commit comments