Skip to content

add blockscout contract validation #189

add blockscout contract validation

add blockscout contract validation #189

name: Run e2e
on:
pull_request:
types: [opened, synchronize, closed]
workflow_dispatch:
inputs:
e2eBranch:
description: ''
required: false
default: 'eth-rollup-develop'
permissions:
contents: write
id-token: write
deployments: write
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
init:
name: Set global version
if: github.event.action != 'closed'
runs-on: ubuntu-latest
outputs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
steps:
- name: Set global version
id: set_vars
run: echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
#build-and-test:
#needs: [init]
#name: Build
#uses: ./.github/workflows/reusable-build-and-test.yml
#secrets: inherit
#with:
#version: ${{ needs.init.outputs.GLOBAL_VERSION }}
start-env:
runs-on: [ubuntu-latest]
needs: [init]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
#- name: build finalizer
# working-directory: avs-finalizer/
# run: cargo +stable build --release
- name: Start env
run: |
export AVS_AGGREGATOR_VERSION=8dd0c81aa88b967334d001d8cae031f8799a189f
export AVS_FINALIZER_VERSION=8dd0c81aa88b967334d001d8cae031f8799a189f
docker compose build sequencer updater
docker compose up --wait
# - name: Sleep for 2 minutes
# run: sleep 120s
- name: docker ps
run: docker ps
- name: Decide if main - branch or parameter
# if we have something in e2eBranch - override E2EBranchName, else -> E2EBRANCHNAME , that
# by default will be main.
run: echo "E2EBRANCHNAME=${{ inputs.e2eBranch || 'eth-rollup-develop' }}" >> $GITHUB_ENV
- name: Checkout tests
uses: actions/checkout@v4
with:
repository: mangata-finance/mangata-e2e
ref: "eth-rollup-develop"
path: e2eTests
- name: Install e2e tests dependencies
working-directory: e2eTests
run: yarn install
- name: restart sequencer
run: docker restart rollup-sequencer-1
- name: Run tests
working-directory: e2eTests
run: "yarn test-rollup"
env:
NODE_OPTIONS: --max_old_space_size=12288
- name: Get Seq logs
if: success() || failure()
run: docker logs rollup-sequencer-1
- name: Get updater logs
if: success() || failure()
run: docker logs rollup-updater-1
- name: Test Report
uses: dorny/[email protected]
continue-on-error: true
if: success() || failure() # run this step even if previous step failed
with:
name: E2E report test-rollup # Name of the check run which will be created
path: e2eTests/reports/*.xml # Path to test results
reporter: jest-junit # Format of test results
- name: Stop env
if: success() || failure() # run this step even if previous step failed
run: |
export AVS_AGGREGATOR_VERSION=8dd0c81aa88b967334d001d8cae031f8799a189f
export AVS_FINALIZER_VERSION=8dd0c81aa88b967334d001d8cae031f8799a189f
docker compose down -v