Skip to content

Commit a2154af

Browse files
chore: changes
1 parent 916ade7 commit a2154af

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/ci-stylus-e2e-tests.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)