Skip to content

feat: add jerigon test workflow #5

feat: add jerigon test workflow

feat: add jerigon test workflow #5

Workflow file for this run

name: Jerigon tests
on:
push:
branches: [develop, main]
pull_request:
branches:
- "**"
workflow_dispatch:
branches:
- "**"
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
jobs:
test_jerigon_input_proving:
name: Test proof generation with jerigon input
runs-on: ubuntu-latest
timeout-minutes: 30
# if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Checkout test-jerigon-network sources
uses: actions/checkout@v4
with:
repository: 0xPolygonZero/jerigon-test-network
path: test-jerigon-network
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run jerigon test network with docker compose
uses: hoverkraft-tech/[email protected]
with:
compose-file: "./docker-compose.yml"
cwd: "./test-jerigon-network"
up-flags: "-d"
down-flags: "--volumes"
- name: Test jerigon network
run: |
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":83}' localhost:8545
env:
RUST_LOG: info