Skip to content

Commit 5b3b68e

Browse files
chore:fixes
1 parent a2154af commit 5b3b68e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,21 @@ jobs:
5757
echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV
5858
echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
5959
echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
60-
6160
# Deploy Mock Pyth Contract
6261
cd pyth-mock-solidity
6362
deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
6463
--rpc-url "$RPC_URL" \
6564
--private-key "$PRIVATE_KEY" \
6665
--broadcast \
6766
| tee /dev/stderr | grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1)
68-
6967
if [[ -z "$deployed_to" ]]; then
7068
echo "Error: MOCK_PYTH_ADDRESS not found!" >&2
7169
exit 1
7270
fi
73-
7471
echo "MOCK_PYTH_ADDRESS=$deployed_to" | tee -a $GITHUB_ENV
7572
cd ..
76-
7773
# Debugging: Show environment variables
7874
echo "Exported Variables:"
7975
env | grep -E "RPC_URL|PRIVATE_KEY|WALLER_ADDRESS|MOCK_PYTH_ADDRESS"
80-
8176
# Run Integration Tests
8277
./scripts/e2e-tests.sh

.github/workflows/ci-stylus-gas-bench.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,25 @@ jobs:
5050
run: ./scripts/nitro-testnode.sh -d -i
5151
- name: run benches
5252
run: |
53-
# Set up environment variables
53+
# Set up environment variables
5454
echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV
5555
echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
5656
echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
57-
57+
# Deploy Mock Pyth Contract
5858
cd pyth-mock-solidity
5959
deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
6060
--rpc-url "$RPC_URL" \
6161
--private-key "$PRIVATE_KEY" \
6262
--broadcast \
63-
| grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1)
64-
echo "MOCK_PYTH_ADDRESS=$deployed_to" >> $GITHUB_ENV
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
6569
cd ..
66-
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
6774
./scripts/bench.sh

0 commit comments

Comments
 (0)