github.com/cloudwego/runtimex@v0.1.0/.github/workflows/tests.yml (about)

     1  name: Tests
     2  
     3  on: [ push, pull_request ]
     4  
     5  jobs:
     6    unit-benchmark-test:
     7      strategy:
     8        matrix:
     9          go: [ "1.18", "1.19", "1.20", "1.21" ]
    10          os: [ X64 ]
    11      runs-on: ${{ matrix.os }}
    12      steps:
    13        - uses: actions/checkout@v3
    14  
    15        - name: Set up Go
    16          uses: actions/setup-go@v3
    17          with:
    18            go-version: ${{ matrix.go }}
    19  
    20        - name: Unit Test
    21          run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
    22  
    23        - name: Benchmark
    24          run: go test -bench=. -benchmem -run=none ./...