File tree Expand file tree Collapse file tree 2 files changed +15
-29
lines changed Expand file tree Collapse file tree 2 files changed +15
-29
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,18 @@ jobs:
5353        run : ./scripts/nitro-testnode.sh -d -i 
5454      - name : run e2e tests 
5555        run : | 
56-           # Set up environment variables  
57-           echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV  
58-           echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV  
59-           echo "WALLER_ADDRESS =0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV  
60-           # Deploy Mock Pyth Contract  
56+           touch .env  
57+           echo "RPC_URL=http://localhost:8547" >> .env  
58+           echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> .env  
59+           echo "WALLET_ADDRESS =0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> .env  
60+           cat .env  
6161          cd pyth-mock-solidity 
6262          deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \ 
6363            --rpc-url "$RPC_URL" \ 
6464            --private-key "$PRIVATE_KEY" \ 
6565            --broadcast \ 
66-             | tee /dev/stderr | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
67-           if [[ -z "$deployed_to" ]]; then 
68-             echo "Error: MOCK_PYTH_ADDRESS not found!" >&2 
69-             exit 1 
70-           fi 
71-           echo "MOCK_PYTH_ADDRESS=$deployed_to" | tee -a $GITHUB_ENV 
72-           cd .. 
73-           # Debugging: Show environment variables 
74-           echo "Exported Variables:" 
75-           env | grep -E "RPC_URL|PRIVATE_KEY|WALLER_ADDRESS|MOCK_PYTH_ADDRESS" 
66+             | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
67+           echo "MOCK_PYTH_ADDRESS=$deployed_to" >> .env 
68+ 
7669          # Run Integration Tests 
7770          ./scripts/e2e-tests.sh 
Original file line number Diff line number Diff line change @@ -51,24 +51,17 @@ jobs:
5151      - name : run benches 
5252        run : | 
5353          # Set up environment variables 
54-           echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV 
55-           echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV 
56-           echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV 
57-           # Deploy Mock Pyth Contract 
54+           touch .env 
55+           echo "RPC_URL=http://localhost:8547" >> .env 
56+           echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> .env 
57+           echo "WALLET_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> .env 
58+ 
5859          cd pyth-mock-solidity 
5960          deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \ 
6061            --rpc-url "$RPC_URL" \ 
6162            --private-key "$PRIVATE_KEY" \ 
6263            --broadcast \ 
63-             | tee /dev/stderr | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
64-           if [[ -z "$deployed_to" ]]; then 
65-             echo "Error: MOCK_PYTH_ADDRESS not found!" >&2 
66-             exit 1 
67-           fi 
68-           echo "MOCK_PYTH_ADDRESS=$deployed_to" | tee -a $GITHUB_ENV 
64+             | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
65+           echo "MOCK_PYTH_ADDRESS=$deployed_to" >> .env 
6966          cd .. 
70-           # Debugging: Show environment variables 
71-           echo "Exported Variables:" 
72-           env | grep -E "RPC_URL|PRIVATE_KEY|WALLER_ADDRESS|MOCK_PYTH_ADDRESS" 
73-           # Run Benches  
7467          ./scripts/bench.sh 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments