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 6e9ef1c
Showing 1 changed file with 18 additions and 27 deletions.
45 changes: 18 additions & 27 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,30 +58,6 @@ 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
Expand Down Expand Up @@ -94,8 +85,8 @@ 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
Expand Down

0 comments on commit 6e9ef1c

Please sign in to comment.