forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1005 Bytes
/
e2e.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
name: End to End testing
on:
pull_request:
paths:
- Cargo.toml
- ci/**
- e2e/**
- proto/**
- modules/**
- relayer/**
- relayer-cli/**
push:
branches: master
paths:
- Cargo.toml
- ci/**
- e2e/**
- proto/**
- modules/**
- relayer/**
- relayer-cli/**
jobs:
test-end-to-end:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --workspace
- run: cp ./target/debug/hermes .
- name: Build relayer image
run: docker-compose -f ci/docker-compose.yml build relayer
- name: Start chains and relayer
run: docker-compose -f ci/docker-compose.yml up -d ibc-0 ibc-1 relayer
- name: Run relayer workflow
run: docker exec relayer /bin/sh -c /relayer/e2e.sh