From 133710b36751969a069dcf927706b7e62a9cdf7a Mon Sep 17 00:00:00 2001 From: avalonche Date: Thu, 19 Oct 2023 09:05:45 +1100 Subject: [PATCH] Add kutorsis workflow --- .github/tests/mev.json | 10 +++++++++ .github/workflows/local-testnet.yaml | 32 ++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/tests/mev.json create mode 100644 .github/workflows/local-testnet.yaml diff --git a/.github/tests/mev.json b/.github/tests/mev.json new file mode 100644 index 00000000..11f2e5bc --- /dev/null +++ b/.github/tests/mev.json @@ -0,0 +1,10 @@ +{ + "mev_type": "mock", + "launch_additional_services": false, + "mev_params": { + "mev_boost_image": "mev-boost" + }, + "network_params": { + "seconds_per_slot": 3 + } +} \ No newline at end of file diff --git a/.github/workflows/local-testnet.yaml b/.github/workflows/local-testnet.yaml new file mode 100644 index 00000000..eac24699 --- /dev/null +++ b/.github/workflows/local-testnet.yaml @@ -0,0 +1,32 @@ +name: E2E + +on: + push: + branches: + - develop + pull_request: + branches: + - develop + +jobs: + run-local-testnet: + name: Run kurtosis local testnet + runs-on: ubuntu-latest + steps: + - name: Set up Kurtosis + run: | + echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list + sudo apt update + sudo apt install kurtosis-cli + kurtosis analytics disable + kurtosis engine restart + + - name: Checkout + uses: actions/checkout@v4 + + - name: Build the Docker image + run: docker build . --file Dockerfile --platform linux/amd64 --tag mev-boost + + - name: Run Kurtosis testnet + run: | + kurtosis run github.com/kurtosis-tech/ethereum-package "$(cat ./.github/tests/mev.json)"