-
Notifications
You must be signed in to change notification settings - Fork 108
132 lines (121 loc) · 3.61 KB
/
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
name: WasmVM Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
main-package-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run main package tests
run: |
go test -v ./... -run "^Test(IBC|AnalyzeCode|StoreCode|SimulateStoreCode|StoreCodeAndGet|RemoveCode|HappyPath|Env|GetMetrics|LongPayloadDeserialization|CreateChecksum)$"
api-contract-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run API contract tests
run: |
go test -v ./internal/api -run "^Test(Instantiate|Execute|ExecutePanic|ExecuteUnreachable|ExecuteCpuLoop|ExecuteStorageLoop|ExecuteUserErrorsInApiCalls|Migrate|MultipleInstances|Sudo)$"
api-iterator-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run API iterator tests
run: |
go test -v ./internal/api -run "^Test(StoreIterator|QueueIterator|RetrieveIterator)"
api-cache-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run API cache tests
run: |
go test -v ./internal/api -run "^Test(InitAndReleaseCache|InitCache|InitLocking)"
api-pin-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run API pin tests
run: |
go test -v ./internal/api -run "^Test(Pin|Unpin|GetMetrics|GetPinnedMetrics)"
api-query-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run API query tests
run: |
go test -v ./internal/api -run "^Test(DispatchSubmessage|ReplyAndQuery|Query|HackatomQuerier|CustomReflectQuerier|Floats|LibwasmvmVersion)"
types-serialization-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run types serialization tests
run: |
go test -v ./types -run "^Test(.*Serialization|.*JSON)$"
types-data-tests:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run types data tests
run: |
go test -v ./types -run "^Test(MessageInfo|BlockInfo|Delegation|Validator|QueryResult|ConfigJSON|ChecksumString)$"
benchmarks:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run benchmarks
run: |
go test -v ./internal/api -run=^$ -bench=.