-
Notifications
You must be signed in to change notification settings - Fork 11
67 lines (67 loc) · 2.09 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
56
57
58
59
60
61
62
63
64
65
66
67
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
- TestOwnerCreateIcaContract
- TestOwnerPredefinedAction
name: ${{ matrix.test }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Build Owner Contract with Docker
run: |
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="devcontract_cache_burner",target=/code/contracts/burner/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.14.0 ./testing/contracts/cw-ica-owner
- 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
if [[ ${{ matrix.test }} == TestOwner* ]]; then
go test -v . -run TestWithOwnerTestSuite -testify.m ${{ matrix.test }}
else
go test -v . -run TestWithContractTestSuite -testify.m ${{ matrix.test }}
fi