Skip to content

Commit

Permalink
test: run cdk e2e tests in without-args repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 28, 2024
1 parent 3197c19 commit 7f5244a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/setup-kurtosis-cdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ inputs:
description: The version of kurtosis
required: false
default: '1.4.1' # https://github.com/kurtosis-tech/kurtosis/releases
polycli-version:
description: The version of polycli
required: false
default: 'v0.1.64' # https://github.com/0xPolygon/polygon-cli

runs:
using: "composite"
Expand Down Expand Up @@ -38,3 +42,14 @@ runs:
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install polycli
shell: bash
run: |
polycli_version=${{ inputs.polycli-version }}
tmp_dir=$(mktemp -d)
curl -L "https://github.com/0xPolygon/polygon-cli/releases/download/${polycli_version}/polycli_${polycli_version}_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
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ jobs:
./monitor-verified-batches.sh \
--enclave ${{ env.ENCLAVE_NAME }} \
--rpc-url $(kurtosis port print ${{ env.ENCLAVE_NAME }} cdk-erigon-rpc-001 rpc)
# Run cdk e2e tests.
- name: Checkout cdk repository
uses: actions/checkout@v4
with:
repository: 0xPolygon/cdk
path: cdk
ref: ${{ env.CDK_VERSION }}
- uses: bats-core/[email protected]
- name: Run cdk e2e tests
working-directory: cdk/test
run: bats .
env:
KURTOSIS_FOLDER: ${{ github.workspace }}
BATS_LIB_PATH: /usr/lib/

- name: Dump enclave
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 7f5244a

Please sign in to comment.