Skip to content

Commit 916ade7

Browse files
removed if statements for test
1 parent 7f8384c commit 916ade7

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,14 @@ jobs:
5858
echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
5959
echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
6060
61-
# Deploy Mock Pyth Contract only if not running in CI
62-
if [ -z "$CI" ]; then
63-
cd pyth-mock-solidity
64-
deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
65-
--rpc-url "$RPC_URL" \
66-
--private-key "$PRIVATE_KEY" \
67-
--broadcast \
68-
| grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1)
69-
echo "MOCK_PYTH_ADDRESS=$deployed_to" >> $GITHUB_ENV
70-
cd ..
71-
fi
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
68+
cd ..
7269
7370
# Run Integration Tests
7471
./scripts/e2e-tests.sh

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ jobs:
4848
name: Install pnpm
4949
- name: Setup nitro node
5050
run: ./scripts/nitro-testnode.sh -d -i
51-
- name: Set up Environment
51+
- name: run benches
5252
run: |
53+
# Set up environment variables
5354
echo "RPC_URL=http://localhost:8547" >> $GITHUB_ENV
5455
echo "PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" >> $GITHUB_ENV
5556
echo "WALLER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" >> $GITHUB_ENV
56-
echo $GITHUB_ENV
57-
- name: Deploy Mock Pyth Contract
58-
run: |
57+
5958
cd pyth-mock-solidity
6059
deployed_to=$(forge script ./script/MockPyth.s.sol:MockPythScript \
6160
--rpc-url "$RPC_URL" \
6261
--private-key "$PRIVATE_KEY" \
6362
--broadcast \
6463
| grep -oP '(?<=Pyth contract address: )0x[a-fA-F0-9]{40}' | tail -n 1)
6564
echo "MOCK_PYTH_ADDRESS=$deployed_to" >> $GITHUB_ENV
66-
- name: run benches
67-
run: ./scripts/bench.sh
65+
cd ..
66+
67+
./scripts/bench.sh

0 commit comments

Comments
 (0)