From 73ff26f85ac0db93db9f915c3d2d69839b31023f Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 7 Jun 2024 14:56:39 -0700 Subject: [PATCH] Add a local kurtosis devnet to CI --- .github/workflows/ci_zkevm.yml | 39 +++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_zkevm.yml b/.github/workflows/ci_zkevm.yml index 35757a765b0..48b75bb2e24 100644 --- a/.github/workflows/ci_zkevm.yml +++ b/.github/workflows/ci_zkevm.yml @@ -52,4 +52,41 @@ jobs: # version: v1.54 - name: Test - run: make test \ No newline at end of file + run: make test + + kurtosis-cdk: + runs-on: ubuntu-latest + steps: + - name: Checkout cdk-erigon + uses: actions/checkout@v4 + with: + path: cdk-erigon + + - name: Checkout kurtosis-cdk + uses: actions/checkout@v4 + with: + repository: 0xPolygon/kurtosis-cdk + ref: feat/cdk-erigon-zkevm + path: kurtosis-cdk + + - name: Install Kurtosis CDK tools + uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk + + - name: Build docker image + working-directory: ./cdk-erigon + run: docker build -t cdk-erigon:local --file Dockerfile . + + - name: Configure Kurtosis CDK + working-directory: ./kurtosis-cdk + run: | + yq -Y --in-place '.args.data_availability_mode = "rollup"' params.yml + yq -Y --in-place '.args.cdk_erigon_node_image = "cdk-erigon:local"' params.yml + + - name: Deploy Kurtosis CDK package + working-directory: ./kurtosis-cdk + run: kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . + + - name: Monitor verified batches + working-directory: ./kurtosis-cdk + shell: bash + run: .github/actions/monitor-cdk-verified-batches/batch_verification_monitor.sh 20 600 cdk-erigon-node-001