fix: increase coverage #186
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
name: Test E2E (multi chains) | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: {} | |
jobs: | |
build-aggkit-image: | |
uses: ./.github/workflows/build-aggkit-image.yml | |
with: | |
go-version: 1.22.x | |
docker-image-name: aggkit | |
test-e2e: | |
needs: build-aggkit-image | |
runs-on: amd-runner-2204 | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
e2e-group: | |
- fork12-multi-pessimistic | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
- name: Build Tools | |
run: make build-tools | |
- name: Checkout kurtosis-cdk | |
uses: actions/checkout@v4 | |
with: | |
repository: 0xPolygon/kurtosis-cdk | |
path: kurtosis-cdk | |
ref: vcastellm/adapt-aggkit | |
- name: Install Kurtosis CDK tools | |
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk | |
- name: Setup Bats and bats libs | |
uses: bats-core/[email protected] | |
- name: Download aggkit archive | |
uses: actions/download-artifact@v4 | |
with: | |
name: aggkit | |
path: /tmp | |
- name: Load aggkit image | |
run: | | |
docker load --input /tmp/aggkit.tar | |
docker image ls -a | |
- name: Run E2E tests | |
run: make test-e2e-fork12-multi-pessimistic | |
working-directory: test | |
env: | |
KURTOSIS_FOLDER: ${{ github.workspace }}/kurtosis-cdk | |
BATS_LIB_PATH: /usr/lib/ | |
AGGLAYER_PROVER_SP1_KEY: ${{ secrets.SP1_PRIVATE_KEY }} | |
- name: Dump enclave logs | |
if: failure() | |
run: kurtosis dump ./dump | |
- name: Generate archive name | |
if: failure() | |
run: | | |
archive_name="dump_run_with_args_${{matrix.e2e-group}}_${{ github.run_id }}" | |
echo "ARCHIVE_NAME=${archive_name}" >> "$GITHUB_ENV" | |
echo "Generated archive name: ${archive_name}" | |
- name: Upload logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.ARCHIVE_NAME }} | |
path: ./dump |