File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
src/integrationTestHelpers Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Build, Test
22
33on :
44 pull_request :
5+ push :
6+ branches :
7+ - main
58 workflow_dispatch :
69
710# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
@@ -326,7 +329,9 @@ jobs:
326329 run : pnpm test:integration:anvil
327330
328331 - name : Save anvil RPC cache
329- if : always()
332+ if : >-
333+ always() &&
334+ github.ref_name == 'main'
330335 uses : actions/cache/save@v4
331336 with :
332337 path : .cache/anvil-rpc-cache.json
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export async function setupAnvilTestStack(): Promise<AnvilTestStack> {
239239
240240 const l1RpcUrlWithCaching = l1RpcCachingProxy . proxyUrl ;
241241
242- const harnessDeployer = createAccount ( ) ;
242+ const harnessDeployer = createAccount ( testConstants . DEPLOYER_PRIVATE_KEY ) ;
243243 const blockAdvancerAccount = createAccount ( ) ;
244244
245245 // Starting L1 node (Anvil)
Original file line number Diff line number Diff line change 1- import { parseAbi } from 'viem' ;
1+ import { Address , parseAbi } from 'viem' ;
22import { ethers } from 'ethers' ;
33
44export const testConstants = {
55 DEFAULT_ANVIL_IMAGE : 'ghcr.io/foundry-rs/foundry:v1.3.1' ,
66 DEFAULT_NITRO_IMAGE : 'offchainlabs/nitro-node:v3.9.5-66e42c4' ,
77 DEFAULT_NITRO_CONTRACTS_IMAGE : 'ghcr.io/offchainlabs/chain-sdk-nitro-contracts:v3.2.0-2f747c7' ,
8+ DEPLOYER_PRIVATE_KEY :
9+ '0x490d84b7602e4b470af4f86a3ad095607a8bb5a4fa8ba148f41fcfd236b4fdf5' as Address ,
810 DEFAULT_L2_CHAIN_ID : 421_337 ,
911 DEFAULT_L3_CHAIN_ID : 421_338 ,
1012 DEFAULT_L1_RPC_PORT : 9645 ,
You can’t perform that action at this time.
0 commit comments