Skip to content

refactor(aggsender): unify block range adjustment #325

refactor(aggsender): unify block range adjustment

refactor(aggsender): unify block range adjustment #325

Workflow file for this run

name: Go E2E Tests
on:
pull_request: {}
workflow_dispatch: {}
# Uncomment to run on schedule (e.g., nightly)
# schedule:
# - cron: "0 2 * * *" # Run at 2 AM UTC daily
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-docker-image:
name: Build Docker Image
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Build Docker image
run: make build-docker
- name: Save Docker image
run: docker save aggkit:local -o /tmp/aggkit-image.tar
- name: Upload Docker image artifact
uses: actions/upload-artifact@v4
with:
name: aggkit-docker-image
path: /tmp/aggkit-image.tar
retention-days: 1
pull-docker-images:
name: Pull Docker Images
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Pull Docker images from compose file
run: |
cd test/e2e/envs/op-pp
docker compose pull geth beacon validator agglayer op-geth-001 op-node-001
- name: Save pulled Docker images
run: |
cd test/e2e/envs/op-pp
# Extract image names from docker compose file
images=$(docker compose config --images | grep -v 'aggkit:local')
echo "Images to save: $images"
docker save $images -o /tmp/docker-images.tar
- name: Upload Docker images artifact
uses: actions/upload-artifact@v4
with:
name: pulled-docker-images
path: /tmp/docker-images.tar
retention-days: 1
test-go-e2e:
name: Run Go E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 45
needs: [build-docker-image, pull-docker-images]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.25.7
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Download aggkit Docker image
uses: actions/download-artifact@v4
with:
name: aggkit-docker-image
path: /tmp
- name: Download pulled Docker images
uses: actions/download-artifact@v4
with:
name: pulled-docker-images
path: /tmp
- name: Load Docker images
run: |
docker load -i /tmp/aggkit-image.tar
docker load -i /tmp/docker-images.tar
- name: Run E2E tests
run: make test-e2e
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-test-results
path: |
test/e2e/*.log
test/e2e/envs/**/logs/
if-no-files-found: ignore