-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (59 loc) · 1.88 KB
/
integration-tests-legacy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Integration Tests (Legacy)
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:
integration-test:
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
chain:
- package: gaia14
command: gaiad
account_prefix: cosmos
features: ''
- package: ibc-go-v7-simapp
command: simd
account_prefix: cosmos
features: solomachine
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
- uses: actions-rs/cargo@v1
with:
command: test
args: -p ibc-integration-test --no-run --features=${{ matrix.chain.features }}
- name: run integration tests
env:
RUST_LOG: info,ibc_relayer_runtime=trace
RUST_BACKTRACE: 1
NO_COLOR_LOG: 1
CHAIN_COMMAND_PATHS: ${{ matrix.chain.command }}
ACCOUNT_PREFIXES: ${{ matrix.chain.account_prefix }}
run: |
nix shell .#cargo-nextest .#protobuf .#${{ matrix.chain.package }} -c \
cargo nextest run \
-p ibc-integration-test \
--features=${{ matrix.chain.features }} \
--test-threads=2 \
--failure-output final