-
Notifications
You must be signed in to change notification settings - Fork 122
76 lines (64 loc) · 2.09 KB
/
e2e-tests.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Run End-To-End Tests
on:
pull_request:
# Ensures that only a single workflow per PR will run at a time. Cancels in-progress jobs if new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test-conformance:
name: test-conformance
runs-on: [self-hosted, linux]
steps:
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: checkout interchaintest
uses: actions/checkout@v3
# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest
# run tests
- name: run conformance tests
run: (go test -race -timeout 30m -failfast -v -p 2 ./cmd/interchaintest) || (echo "\n\n*****CHAIN and RELAYER LOGS*****" && cat "$HOME/.interchaintest/logs/interchaintest.log" && exit 1)
test-ibc-examples:
name: test-ibc-examples
runs-on: [self-hosted, linux]
steps:
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19
cache: false
- name: checkout interchaintest
uses: actions/checkout@v3
# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest
# run tests
- name: run example ibc tests
run: go test -race -timeout 30m -failfast -v -p 2 ./examples/ibc
test-cosmos-examples:
name: test-cosmos-examples
runs-on: [self-hosted, linux]
steps:
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19
cache: false
- name: checkout interchaintest
uses: actions/checkout@v3
# cleanup environment on self-hosted test runner
- name: clean
run: |-
rm -rf ~/.interchaintest
# run tests
- name: run example cosmos tests
run: go test -race -failfast -timeout 30m -v -p 2 ./examples/cosmos