diff --git a/.github/workflows/mev-commit-infra-test.yml b/.github/workflows/mev-commit-infra.yml similarity index 94% rename from .github/workflows/mev-commit-infra-test.yml rename to .github/workflows/mev-commit-infra.yml index 0dfbf14e1..e09c8905a 100644 --- a/.github/workflows/mev-commit-infra-test.yml +++ b/.github/workflows/mev-commit-infra.yml @@ -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: @@ -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" diff --git a/mev-commit-cli.sh b/mev-commit-cli.sh index 6d7f1129e..cd2077c22 100755 --- a/mev-commit-cli.sh +++ b/mev-commit-cli.sh @@ -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 } @@ -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" < "p2p/integrationtest/.env" <<-EOF BIDDER_REGISTRY=0x02CcEcB19c6D7EFe583C8b97022cB4b4C0B65608 PROVIDER_REGISTRY=0x070cE6161AD79a3BC7aEa222FdfC6AD171Ca83F3 PRECONF_CONTRACT=0x4DfF34f74aE5C48a5050eb54e7cEDAb9DEF03715