Skip to content

Add tm2eth test

Add tm2eth test #8

Workflow file for this run

name: tm2tm@v0.4
on: [push, pull_request]
env:
CACHE_BIN_RELAYER_KEY: bin-relayer
CACHE_BIN_RELAYER_PATH: ./build/yrly
CACHE_DOCKER_TENDERMINT_KEY: docker-tendermint
CACHE_DOCKER_TENDERMINT_DIR: /tmp/tendermint
jobs:
tm2tm-test:
name: tm2tm-test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Wait for build to succeed
uses: lewagon/wait-on-check-action@v1.3.1
with:
ref: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha }}
check-regexp: '(relayer|tendermint)-build'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Restore relayer binary cache
uses: actions/cache@v3
with:
path: ${{ env.CACHE_BIN_RELAYER_PATH }}
key: ${{ runner.os }}-${{ env.CACHE_BIN_RELAYER_KEY }}-${{ hashFiles('relayer/**', 'go.sum') }}
- name: Restore Tendermint docker image cache
uses: actions/cache@v3
with:
path: ${{ env.CACHE_DOCKER_TENDERMINT_DIR }}
key: ${{ runner.os }}-${{ env.CACHE_DOCKER_TENDERMINT_KEY }}-${{ hashFiles('tests/chains/tendermint/**', '!**/.git/**') }}
- name: Load Tendermint docker images
working-directory: ./tests/scripts
run: |
./load_docker_images $CACHE_DOCKER_TENDERMINT_DIR tendermint-chain0:latest tendermint-chain1:latest
- name: Run Test
working-directory: ./tests/cases/tm2tm
run: |
make network
make test
make network-down