Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

Commit

Permalink
chore: Clean up the kurtosis actions
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Jan 29, 2025
1 parent c8fb9c1 commit beaf35a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
16 changes: 16 additions & 0 deletions .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Setup test environment
description: Install everything we need to run the CI pipelines
runs:
using: "composite"
steps:
# Install foundry
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

# Install kurtosis
- name: Run kurtosis
shell: bash
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
18 changes: 6 additions & 12 deletions .github/workflows/kurtosis-op-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Download docker image artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -98,14 +101,8 @@ jobs:
# List available images
docker image ls -a
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run 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 engine start
kurtosis run --enclave op-devnet github.com/ethpandaops/optimism-package --args-file .github/assets/kurtosis_op_network_params_local.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
Expand Down Expand Up @@ -142,6 +139,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Download docker image artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -158,14 +158,8 @@ jobs:
# List available images
docker image ls -a
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run 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 engine start
kurtosis run --enclave op-devnet github.com/ethpandaops/optimism-package --args-file .github/assets/kurtosis_op_network_params_local_no_op_geth.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/kurtosis-op-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Download docker image artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -50,14 +53,8 @@ jobs:
# List available images
docker image ls -a
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run 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 engine start
kurtosis run --enclave op-devnet github.com/ethpandaops/optimism-package --args-file .github/assets/kurtosis_op_network_params_remote.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
Expand Down Expand Up @@ -93,6 +90,9 @@ jobs:
with:
fetch-depth: 0

- name: Setup environment
uses: ./.github/actions/setup-environment

- name: Download docker image artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -108,14 +108,8 @@ jobs:
# List available images
docker image ls -a
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run 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 engine start
kurtosis run --enclave op-devnet github.com/ethpandaops/optimism-package --args-file .github/assets/kurtosis_op_network_params_remote_no_op_geth.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
Expand Down

0 comments on commit beaf35a

Please sign in to comment.