Skip to content

Commit

Permalink
fix: github infra test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Apr 8, 2024
1 parent 138c282 commit 0c31638
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
name: mev-commit-infra-test
name: mev-commit-infra

on:
workflow_run:
workflows: ["mev-commit-ci"]
types:
- completed
branches:
- main

jobs:
deploy_and_test:
name: Deploy and Test mev-commit infra
name: Deploy and Test mev-commit Minimal Infrastructure
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
Expand Down Expand Up @@ -37,7 +39,7 @@ jobs:
- name: Check Service Endpoints
run: |
ips=("172.29.18.2" "172.29.0.3" "172.29.0.4")
for ip in "${ips[@]}"; do
echo "Checking service at $ip"
Expand Down
19 changes: 16 additions & 3 deletions mev-commit-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,19 @@ stop_settlement_layer() {

start_mev_commit_minimal() {
echo "Starting MEV-Commit..."

# Create or overwrite the .env file
echo "Setting .env file..."
cat > "p2p/integrationtest/.env" <<-EOF
BIDDER_REGISTRY=0x02CcEcB19c6D7EFe583C8b97022cB4b4C0B65608
PROVIDER_REGISTRY=0x070cE6161AD79a3BC7aEa222FdfC6AD171Ca83F3
PRECONF_CONTRACT=0x4DfF34f74aE5C48a5050eb54e7cEDAb9DEF03715
RPC_URL=${rpc_url}
PRIVATE_KEY=ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
L1_RPC_URL="${L1_RPC_BASE_URL}/${sepolia_key}"
EOF

docker compose --profile minimal-setup -f "p2p/integration-compose.yml" up --build -d
}

Expand All @@ -83,10 +96,10 @@ start_mev_commit_e2e() {
;;
esac
done
echo "Setting .env file ..."
echo "Setting .env file..."

# Create or overwrite the .env file
cat > "p2p/integrationtest/.env" <<EOF
# Create or overwrite the .env file
cat > "p2p/integrationtest/.env" <<-EOF
BIDDER_REGISTRY=0x02CcEcB19c6D7EFe583C8b97022cB4b4C0B65608
PROVIDER_REGISTRY=0x070cE6161AD79a3BC7aEa222FdfC6AD171Ca83F3
PRECONF_CONTRACT=0x4DfF34f74aE5C48a5050eb54e7cEDAb9DEF03715
Expand Down

0 comments on commit 0c31638

Please sign in to comment.