-
Notifications
You must be signed in to change notification settings - Fork 32
107 lines (100 loc) · 3.18 KB
/
integration-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
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
name: Interchain tests
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
go-build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: container-login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: labels
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-heighliner
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern=v{{version}}
- name: Heighliner build and push
id: heighlinerbuild
uses: burnt-labs/[email protected]
with:
local: true
tag: ${{ steps.meta.outputs.version }}
chain: xion
github-organization: burnt-labs
github-repo: xion
dockerfile: cosmos
build-target: make install
binaries: "[\"/go/bin/xiond\"]"
build-env: "[\"BUILD_TAGS=muslc\"]"
- name: Push docker image
run: |
docker tag ${{ steps.heighlinerbuild.outputs.tag }} ghcr.io/burnt-labs/xion/${{ steps.heighlinerbuild.outputs.tag }}
docker push ghcr.io/burnt-labs/xion/${{ steps.heighlinerbuild.outputs.tag }}
interchain-tests:
environment: CI
runs-on: ubuntu-latest
needs: [ go-build ]
strategy:
fail-fast: false
matrix:
test_type:
- "DungeonTransferBlock"
- "XionSendPlatformFee"
- "MintModuleNoInflationNoFees"
- "MintModuleInflationHighFees"
- "MintModuleInflationLowFees"
- "JWTAbstractAccount"
- "XionSendPlatformFee"
- "XionAbstractAccount"
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: ^1.21
- name: checkout
uses: actions/checkout@v4
- name: container-login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: docker xion metadata
id: meta-xion
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-heighliner
- name: pull xion image
run: docker pull ghcr.io/burnt-labs/xion/xion:${{ steps.meta-xion.outputs.version }}
- name: rename xion image
run: docker tag ghcr.io/burnt-labs/xion/xion:${{ steps.meta-xion.outputs.version }} xion:prebuilt
- name: build go test binary
run: cd integration_tests && go test -c
- name: Run all up ci test
run: ./integration_tests/integration_tests.test -test.failfast -test.v -test.run Test${{ matrix.test_type }}
env:
E2E_SKIP_CLEANUP: true
XION_IMAGE: xion:prebuilt