-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (32 loc) · 1.16 KB
/
push-check-compat.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
name: Compatibility Test
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
go-version: [1.17.x, 1.22.x]
os: [ARM64, X64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Unit Test
run: |
go test -race github.com/cloudwego/dynamicgo/thrift
go test -race github.com/cloudwego/dynamicgo/thrift/annotation
go test -race github.com/cloudwego/dynamicgo/thrift/generic
go test -race github.com/cloudwego/dynamicgo/conv/t2j
go test -race github.com/cloudwego/dynamicgo/http
go test -race github.com/cloudwego/dynamicgo/internal/json
go test -race github.com/cloudwego/dynamicgo/conv/j2p
go test -race github.com/cloudwego/dynamicgo/conv/p2j
go test -race github.com/cloudwego/dynamicgo/proto/generic