File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,25 @@ jobs:
5858          echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV 
5959          echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV 
6060
61+           # Deploy Mock Pyth Contract 
6162          cd pyth-mock-solidity 
6263          deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \ 
6364            --rpc-url "$RPC_URL" \ 
6465            --private-key "$PRIVATE_KEY" \ 
6566            --broadcast \ 
66-             | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
67-           echo "MOCK_PYTH_ADDRESS=$deployed_to" >> $GITHUB_ENV 
67+             | tee /dev/stderr | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1) 
68+ 
69+           if [[ -z "$deployed_to" ]]; then 
70+             echo "Error: MOCK_PYTH_ADDRESS not found!" >&2 
71+             exit 1 
72+           fi 
73+ 
74+           echo "MOCK_PYTH_ADDRESS=$deployed_to" | tee -a $GITHUB_ENV 
6875          cd .. 
6976
77+           # Debugging: Show environment variables 
78+           echo "Exported Variables:" 
79+           env | grep -E "RPC_URL|PRIVATE_KEY|WALLER_ADDRESS|MOCK_PYTH_ADDRESS" 
80+ 
7081          # Run Integration Tests 
71-           ./scripts/e2e-tests.sh 
82+           ./scripts/e2e-tests.sh 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments