-
Notifications
You must be signed in to change notification settings - Fork 103
121 lines (98 loc) · 3.37 KB
/
interchaintest.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Run InterchainTest
on:
pull_request:
branches:
- main
release:
types: published
workflow_dispatch:
jobs:
build_sg_image:
name: Build Stargaze image ✨
runs-on: ubuntu-latest
steps:
- name: Checkout public-awesome/stargaze
uses: actions/checkout@v3
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Stargaze Docker image
uses: docker/build-push-action@v4
with:
context: .
tags: publicawesome/stargaze:local-dev
outputs: type=docker,dest=/tmp/sg.tar
- name: Upload the Docker image # Uploading as artifact so that all the tests which run as different jobs can use this image
uses: actions/upload-artifact@v3
with:
name: sg
path: /tmp/sg.tar
retention-days: 1
build_interchaintest:
name: Build interchaintest 🔗
runs-on: ubuntu-latest
steps:
- name: Checkout strangelove-ventures/interchaintest
uses: actions/checkout@v3
with:
repository: strangelove-ventures/interchaintest
- name: Set up Golang
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Build Interchaintest
run: make interchaintest
- name: Upload binary as artifact # Uploading as artifact so that all the tests which run as different jobs can use this binary
uses: actions/upload-artifact@v3
with:
name: interchaintest
path: ./bin/interchaintest
retention-days: 1
run_gaia_interchaintest:
name: gaia ⚛️
needs: [build_interchaintest,build_sg_image]
uses: ./.github/workflows/interchaintest_runner.yml
with:
test-matrix: 'interchain_test/gaia.matrix.json'
run_osmosis_interchaintest:
name: osmosis 🧪
needs: [build_interchaintest,build_sg_image]
uses: ./.github/workflows/interchaintest_runner.yml
with:
test-matrix: 'interchain_test/osmosis.matrix.json'
run_icad_interchaintest:
name: icad 🔗
needs: [build_interchaintest,build_sg_image]
uses: ./.github/workflows/interchaintest_runner.yml
with:
test-matrix: 'interchain_test/icad.matrix.json'
run_pfm_interchaintest:
name: pfm ⏩
needs: [build_sg_image]
uses: ./.github/workflows/interchaintest_custom_runner.yml
with:
test-cmd: 'test-pfm'
run_chain_upgrade_interchaintest:
name: upgrade 🏆
needs: [build_sg_image]
uses: ./.github/workflows/interchaintest_custom_runner.yml
with:
test-cmd: 'test-chain-upgrade'
cleanup:
name: Delete artifacts 🗑️
needs: [run_gaia_interchaintest,run_osmosis_interchaintest,run_icad_interchaintest,run_pfm_interchaintest,run_chain_upgrade_interchaintest]
runs-on: ubuntu-latest
steps:
- name: Delete interchaintest # Delete the binary from workflow artifacts as its not needed anymore
uses: geekyeggo/delete-artifact@v2
with:
name: interchaintest
failOnError: false
- name: Delete sg # Delete the stargaze docker image from workflow artifacts as its not needed anymore
uses: geekyeggo/delete-artifact@v2
with:
name: sg
failOnError: false