Skip to content

feat(e2e): bootstrap connection and channel between starknet <> cosmos #456

feat(e2e): bootstrap connection and channel between starknet <> cosmos

feat(e2e): bootstrap connection and channel between starknet <> cosmos #456

Workflow file for this run

name: Hermes Relayer
on:
pull_request: {}
push:
branches: main
# Cancel previous runs of this workflow when a new commit is added to the PR, branch or tag
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
starknet-integration-tests:
name: Run Starknet Integration Tests
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
relayer -> relayer/target
light-client -> light-client/target
- name: Build Cairo contracts
working-directory: ./cairo-contracts
run: |
nix shell ..#scarb -c \
scarb build -p starknet_ibc_contracts
- name: Build Starknet Wasm light client
run: nix build .#ibc-starknet-cw
- name: Run Integration Tests
env:
RUST_BACKTRACE: 1
working-directory: ./relayer
run: |
export ERC20_CONTRACT="$(pwd)/../cairo-contracts/target/dev/starknet_ibc_contracts_ERC20Mintable.contract_class.json"
export ICS20_CONTRACT="$(pwd)/../cairo-contracts/target/dev/starknet_ibc_contracts_TransferApp.contract_class.json"
export COMET_CLIENT_CONTRACT="$(pwd)/../cairo-contracts/target/dev/starknet_ibc_contracts_CometClient.contract_class.json"
export STARKNET_WASM_CLIENT_PATH="$(nix path-info ..#ibc-starknet-cw)/ibc_client_starknet_cw.wasm"
export IBC_CORE_CONTRACT="$(pwd)/../cairo-contracts/target/dev/starknet_ibc_contracts_IBCCore.contract_class.json"
nix develop ..#rust -c \
cargo nextest run --test-threads=2
lint-relayer:
name: Lint Relayer Code
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
relayer -> relayer/target
- name: Run Clippy
working-directory: ./relayer
run: |
nix shell ..#rust -c \
cargo clippy --all-targets --all-features -- -D warnings