forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add kurtosis setup composite action
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
name: "Setup Kurtosis" | ||
description: "Setup Kurtosis CDK for tests" | ||
runs: | ||
using: "composite" | ||
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: v0.2.24 | ||
path: kurtosis-cdk | ||
|
||
- name: Install Kurtosis CDK tools | ||
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Install polycli | ||
shell: bash | ||
run: | | ||
tmp_dir=$(mktemp -d) && curl -L https://github.com/0xPolygon/polygon-cli/releases/download/v0.1.48/polycli_v0.1.48_linux_amd64.tar.gz | tar -xz -C "$tmp_dir" && mv "$tmp_dir"/* /usr/local/bin/polycli && rm -rf "$tmp_dir" | ||
sudo chmod +x /usr/local/bin/polycli | ||
/usr/local/bin/polycli version | ||
- name: Build docker image | ||
working-directory: ./cdk-erigon | ||
shell: bash | ||
run: docker build -t cdk-erigon:local --file Dockerfile . | ||
|
||
- name: Remove unused flags | ||
working-directory: ./kurtosis-cdk | ||
shell: bash | ||
run: | | ||
sed -i '/zkevm.sequencer-batch-seal-time:/d' templates/cdk-erigon/config.yml | ||
sed -i '/zkevm.sequencer-non-empty-batch-seal-time:/d' templates/cdk-erigon/config.yml | ||
sed -i '/sentry.drop-useless-peers:/d' templates/cdk-erigon/config.yml | ||
sed -i '/zkevm.pool-manager-url/d' templates/cdk-erigon/config.yml | ||
sed -i '/zkevm.l2-datastreamer-timeout:/d' templates/cdk-erigon/config.yml | ||
- name: Create params.yml overrides | ||
working-directory: ./kurtosis-cdk | ||
shell: bash | ||
run: | | ||
echo 'args:' > params.yml | ||
echo ' cdk_erigon_node_image: cdk-erigon:local' >> params.yml | ||
echo ' el-1-geth-lighthouse: ethpandaops/lighthouse@sha256:4902d9e4a6b6b8d4c136ea54f0e51582a32f356f3dec7194a1adee13ed2d662e' >> params.yml | ||
- name: Deploy Kurtosis CDK package | ||
working-directory: ./kurtosis-cdk | ||
shell: bash | ||
run: kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always . |