Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] - Nightly Ansible - Add CDK-1 Network #714

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 36 additions & 16 deletions .github/workflows/nightly-ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,38 @@ on:
schedule:
- cron: '0 0 * * *' # run at midnight to stagger tests (take around 15m to pass)
workflow_dispatch:
inputs:
matrix:
description: 'Choose Network'
required: false # allows running all matrix entries
default: 'all'
type: choice
options:
- all
- integration-5
- cdk-1

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: "Integration 5"
rpc_url: "http://34.175.214.161:8500"
eth_address: "0x41BB6960a5156aC29d6e9E04273837AD19d6691A"
secret_name: "NETWORK5_PRIVATE_KEY"
log_file: "/tmp/rpc-tests.d/evm-rpc-tests.log"
work_dir: "/tmp/rpc-tests.d"
max_block_size: "25000000"
legacy_flag: "--legacy"
block_interval: "12"
include:
- name: "integration-5"
rpc_url: "http://34.175.214.161:8500"
eth_address: "0x41BB6960a5156aC29d6e9E04273837AD19d6691A"
environment: "integration-5"
max_block_size: "25000000"
legacy_flag: "--legacy"
block_interval: "12"
- name: "cdk-1"
rpc_url: "http://34.175.214.161:8020"
eth_address: "0x673df8221611aD1f714053b82c4F9E2b0867CcC6"
environment: "cdk-1"
max_block_size: "25000000"
legacy_flag: "--legacy"
block_interval: "12"
if: github.event.inputs.matrix == 'all' || github.event.inputs.matrix == matrix.environment

steps:
- name: Checkout repository
Expand All @@ -28,21 +44,25 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker Compose
run: |
cd zk/tests/ansible/evm-rpc-tests && docker-compose up --build

- name: Run Docker Compose
env:
RPC_URL: ${{ matrix.rpc_url }}
PRIVATE_KEY: ${{ secrets[matrix.secret_name] }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ETH_ADDRESS: ${{ matrix.eth_address }}
LOG_FILE: ${{ matrix.log_file }}
WORK_DIR: ${{ matrix.work_dir }}
LOG_FILE: "/tmp/rpc-tests.d/evm-rpc-tests.log"
WORK_DIR: "/tmp/rpc-tests.d"
MAX_BLOCK_SIZE: ${{ matrix.max_block_size }}
LEGACY_FLAG: ${{ matrix.legacy_flag }}
BLOCK_INTERVAL: ${{ matrix.block_interval }}
run: |
cd zk/tests/ansible/evm-rpc-tests && docker-compose up --build
cd zk/tests/ansible/evm-rpc-tests && docker-compose up

- name: Upload logs
uses: actions/upload-artifact@v3
with:
name: evm-rpc-tests-logs-${{ matrix.nodes.name }}
path: ./logs/evm-rpc-tests.log
name: evm-rpc-tests-logs-${{ matrix.name }}
path: ${{ env.LOG_FILE }}
Loading