File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed
target_chains/ethereum/sdk/stylus/scripts Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 5151 sudo chmod a+x /usr/bin/solc
5252 - name : Setup nitro node
5353 run : ./scripts/nitro-testnode.sh -d -i
54+ - name : Set up Environment
55+ run : |
56+ echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV
57+ echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
58+ echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
59+ - name : Deploy Mock Pyth Contract
60+ run : |
61+ cd pyth-mock-solidity
62+ deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
63+ --rpc-url "$RPC_URL" \
64+ --private-key "$PRIVATE_KEY" \
65+ --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
5468 - name : run integration tests
5569 run : ./scripts/e2e-tests.sh
Original file line number Diff line number Diff line change 4848 name : Install pnpm
4949 - name : Setup nitro node
5050 run : ./scripts/nitro-testnode.sh -d -i
51+ - name : Set up Environment
52+ run : |
53+ echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV
54+ echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
55+ echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
56+ - name : Deploy Mock Pyth Contract
57+ run : |
58+ cd pyth-mock-solidity
59+ deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
60+ --rpc-url "$RPC_URL" \
61+ --private-key "$PRIVATE_KEY" \
62+ --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
5165 - name : run benches
5266 run : ./scripts/bench.sh
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4+ if [ -z " $CI " ]; then
5+
46MYDIR=$( realpath " $( dirname " $0 " ) " )
57cd " $MYDIR "
68cd ..
79
10+
811export RPC_URL=http://localhost:8547
912export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
1013export WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
@@ -23,7 +26,9 @@ deployed_to=$(
2326
2427export MOCK_PYTH_ADDRESS=$deployed_to
2528cd ..
26-
29+ else
30+ echo " Skipping MockPyth deployment in CI"
31+ fi
2732
2833MYDIR=$( realpath " $( dirname " $0 " ) " )
2934cd " $MYDIR "
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4+ if [ -z " $CI " ]; then
5+
46MYDIR=$( realpath " $( dirname " $0 " ) " )
57cd " $MYDIR "
68
@@ -21,9 +23,11 @@ deployed_to=$(
2123 --broadcast \
2224 | grep -oP ' (?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1
2325)
24-
2526export MOCK_PYTH_ADDRESS=$deployed_to
2627cd ..
28+ else
29+ echo " Skipping MockPyth deployment in CI"
30+ fi
2731
2832# Navigate to project root
2933cd " $( dirname " $( realpath " $0 " ) " ) /.."
You can’t perform that action at this time.
0 commit comments