Skip to content

refator: refator some code of Ckb4Ibc endpoint, solved some fatal bugs #500

refator: refator some code of Ckb4Ibc endpoint, solved some fatal bugs

refator: refator some code of Ckb4Ibc endpoint, solved some fatal bugs #500

name: Forcerelay
on:
pull_request:
paths:
- .github/workflows/forcerelay-test.yaml
- Cargo.toml
- Cargo.lock
- ci/**
- crates/**
- tools/**
push:
branches: main
- .github/workflows/forcerelay-test.yaml
- Cargo.toml
- Cargo.lock
- ci/**
- crates/**
- tools/**
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
forecerelay-test:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- name: add test key
run: |
mkdir -p ~/.forcerelay/keys/ibc-ckb-0/keyring-test
cp ./tools/forcerelay-test/ckb/relayer_ckb_wallet.json ~/.forcerelay/keys/ibc-ckb-0/keyring-test
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: -p ibc-relayer
- name: prepare-ckb
run: |
if [ ! -f "/tmp/ckb.tar.gz" ]; then
curl -L https://github.com/nervosnetwork/ckb/releases/download/v0.107.0/ckb_v0.107.0_x86_64-unknown-linux-gnu.tar.gz -o /tmp/ckb.tar.gz
fi
tar -zxf /tmp/ckb.tar.gz -C /tmp
echo "/tmp/ckb_v0.107.0_x86_64-unknown-linux-gnu" >> $GITHUB_PATH
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions-rs/cargo@v1
with:
command: test
args: -p forcerelay-test forcerelay-test --lib --all-features -- tests::integration_test --exact --nocapture --ignored