github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/.github/workflows/push-check-linux-compat.yml (about)

     1  name: Compatibility Test
     2  
     3  on: [ push, pull_request ]
     4  
     5  jobs:
     6    build:
     7      strategy:
     8        matrix:
     9          go-version: [1.15.x, 1.20.x]
    10          os: [ARM64, X64]
    11      runs-on: ${{ matrix.os }}
    12      steps:
    13        - uses: actions/checkout@v2
    14  
    15        - name: Set up Go
    16          uses: actions/setup-go@v2
    17          with:
    18            go-version: ${{ matrix.go-version }}
    19  
    20        - uses: actions/cache@v2
    21          with:
    22            path: ~/go/pkg/mod
    23            key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    24            restore-keys: |
    25              ${{ runner.os }}-go-
    26  
    27        - name: Unit Test
    28          run: |
    29            go test -race github.com/cloudwego/dynamicgo/thrift
    30            go test -race github.com/cloudwego/dynamicgo/thrift/annotation
    31            go test -race github.com/cloudwego/dynamicgo/thrift/generic
    32            go test -race github.com/cloudwego/dynamicgo/conv/t2j
    33            go test -race github.com/cloudwego/dynamicgo/http
    34            go test -race github.com/cloudwego/dynamicgo/internal/json
    35            go test -race github.com/cloudwego/dynamicgo/conv/j2p
    36            go test -race github.com/cloudwego/dynamicgo/conv/p2j
    37            go test -race github.com/cloudwego/dynamicgo/proto/generic