-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (55 loc) · 1.48 KB
/
e2e.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
name: e2e
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
with:
version: v1.53.2
args: --timeout 5m
working-directory: e2e/interchaintest
build:
strategy:
matrix:
test:
- TestIcaContractChannelHandshake
- TestIcaRelayerInstantiatedChannelHandshake
- TestRecoveredIcaContractInstantiatedChannelHandshake
- TestIcaContractExecutionProto3JsonEncoding
- TestIcaContractExecutionProtobufEncoding
- TestIcaContractTimeoutPacket
name: ${{ matrix.test }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install cargo-run-script
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-run-script
- name: Build Optimized Contract
uses: actions-rs/cargo@v1
with:
command: run-script
args: optimize
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: TestContract
run: |
cd e2e/interchaintest
go test -v . -run TestWithContractTestSuite -testify.m ${{ matrix.test }}