Skip to content

Commit

Permalink
Speed up the build for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shazarre committed Oct 16, 2024
1 parent c2abcd8 commit b05e6a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/cli/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export abstract class BaseCommand extends Command {
nodeUrl && nodeUrl.endsWith('.ipc')
? new Web3(new Web3.providers.IpcProvider(nodeUrl, net))
: new Web3(nodeUrl)

// Speed up the build for Github Actions
if (process.env['GITHUB_ACTIONS']) {
// @ts-ignore
this._web3.eth.transactionPollingInterval = 10
}
}
return this._web3
}
Expand Down

0 comments on commit b05e6a9

Please sign in to comment.