update yui-relayer that impls restruct of config initialization #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: [email protected] | |
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 | |
CACHE_DOCKER_ETHEREUM_KEY: docker-ethereum | |
CACHE_DOCKER_ETHEREUM_DIR: /tmp/ethereum | |
jobs: | |
tm2eth-test: | |
name: tm2eth-test | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Wait for build to succeed | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ (github.event_name == 'pull_request' && github.event.pull_request.head.sha) || github.sha }} | |
check-regexp: '(relayer|tendermint|ethereum)-build' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 30 | |
- name: Restore relayer binary cache | |
uses: actions/cache@v4 | |
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@v4 | |
with: | |
path: ${{ env.CACHE_DOCKER_TENDERMINT_DIR }} | |
key: ${{ runner.os }}-${{ env.CACHE_DOCKER_TENDERMINT_KEY }}-${{ hashFiles('tests/chains/tendermint/**', '!**/.git/**') }} | |
- name: Restore Ethereum docker image cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.CACHE_DOCKER_ETHEREUM_DIR }} | |
key: ${{ runner.os }}-${{ env.CACHE_DOCKER_ETHEREUM_KEY }}-${{ hashFiles('tests/chains/ethereum/**', '!**/.git/**') }} | |
- name: Load Tendermint docker images | |
working-directory: ./tests/scripts | |
run: | | |
./load_docker_images $CACHE_DOCKER_TENDERMINT_DIR tendermint-chain0:latest | |
./load_docker_images $CACHE_DOCKER_ETHEREUM_DIR ethereum-geth0:latest | |
- name: Run Test | |
working-directory: ./tests/cases/tm2eth | |
run: | | |
make network | |
make test | |
make network-down |