Skip to content

Commit

Permalink
test(ci): enable matrix test of ckb and axon
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Aug 24, 2023
1 parent ad29dc9 commit e7a7293
Showing 1 changed file with 20 additions and 28 deletions.
48 changes: 20 additions & 28 deletions .github/workflows/ibc-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,24 @@ concurrency:
cancel-in-progress: true

jobs:
ibc-test-ckb:
ibc-test:
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
SRC_DIR: ./tmp/ibc-test-src
strategy:
fail-fast: false
matrix:
chain_a:
- command: ckb
account_prefix: ckb
- command: axon
account_prefix: axon
chain_b:
- command: ckb
account_prefix: ckb
- command: axon
account_prefix: axon
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -43,34 +58,10 @@ jobs:
fi
tar -zxf /tmp/ckb.tar.gz -C /tmp
echo "/tmp/ckb_v0.107.0_x86_64-unknown-linux-gnu" >> $GITHUB_PATH
- uses: actions-rs/cargo@v1
env:
CHAIN_COMMAND_PATHS: ckb
ACCOUNT_PREFIXES: ckb
RUST_LOG: info
with:
command: test
args: -p ibc-test --all-features -- --nocapture
ibc-test-axon:
runs-on: ubuntu-20.04
timeout-minutes: 60
env:
SRC_DIR: ./tmp/ibc-test-src
steps:
- uses: actions/checkout@v3
- 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: Create folder
run: mkdir -p $SRC_DIR
- name: Prepare Axon source
run: git clone -b forcerelay-tests --single-branch --recursive https://github.com/axonweb3/axon.git $SRC_DIR/axon
run: git clone -b forcerelay-test --single-branch --recursive https://github.com/axonweb3/axon.git $SRC_DIR/axon
- name: Install Axon
uses: actions-rs/cargo@v1
with:
Expand All @@ -94,11 +85,12 @@ jobs:
dir: ${{env.SRC_DIR}}/ibc-solidity-contract
- uses: actions-rs/cargo@v1
env:
CHAIN_COMMAND_PATHS: axon
ACCOUNT_PREFIXES: axon
CHAIN_COMMAND_PATHS: ${{ matrix.chain_a.command }},${{ matrix.chain_b.command }}
ACCOUNT_PREFIXES: ${{ matrix.chain_a.account_prefix }},${{ matrix.chain_b.account_prefix }}
AXON_SRC_PATH: ${{env.SRC_DIR}}/axon
IBC_CONTRACTS_SRC_PATH: ${{env.SRC_DIR}}/ibc-solidity-contract
RUST_LOG: info
RUST_BACKTRACE: 1
with:
command: test
args: -p ibc-test --all-features -- --nocapture

0 comments on commit e7a7293

Please sign in to comment.