Skip to content

Use env variables to bootstrap CosmosBootstrap #1269

Use env variables to bootstrap CosmosBootstrap

Use env variables to bootstrap CosmosBootstrap #1269

name: Integration Tests
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:
cosmos-integration-tests:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: hermes-sdk
extraPullNames: cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: run integration tests
env:
RUST_BACKTRACE: 1
run: |
export LEGACY_GAIA_BIN=$(nix build .#gaia14 --print-out-paths --no-link)/bin/gaiad
nix shell .#cargo-nextest .#protobuf .#gaia .#celestia-app .#ibc-go-v8-simapp -c \
cargo nextest run -p hermes-cosmos-integration-tests \
--test-threads=2
wasm-cosmos-integration-tests:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: hermes-sdk
extraPullNames: cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: run integration tests
env:
RUST_BACKTRACE: 1
run: |
export WASM_FILE_PATH=$(nix build .#tendermint-wasm-client --print-out-paths --no-link)/ibc_client_tendermint_cw.wasm
nix shell .#cargo-nextest .#protobuf .#gaia .#ibc-go-v8-wasm-simapp -c \
cargo nextest run -p hermes-cosmos-wasm-relayer \
--test-threads=2
celestia-integration-tests:
runs-on: ubuntu-20.04
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: hermes-sdk
extraPullNames: cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- name: run integration tests
env:
RUST_BACKTRACE: 1
run: |
nix shell .#cargo-nextest .#protobuf .#gaia .#celestia-app .#celestia-node -c \
cargo nextest run -p hermes-celestia-integration-tests \
--test-threads=2 \
--failure-output final