github.com/cloudwego/localsession@v0.0.2/.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.17, 1.18, 1.19 ]
    10          os: [ X64, ARM64 ]
    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         # block scenario, comment temporarily
    21  #      - uses: actions/cache@v3
    22  #        with:
    23  #          path: ~/go/pkg/mod
    24  #          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    25  #          restore-keys: |
    26  #            ${{ runner.os }}-go-
    27  
    28        - name: Unit Test
    29          run: go test -covermode=atomic -coverprofile=coverage.out ./...
    30  
    31        - name: Benchmark
    32          run: go test -bench=. -benchmem -run=none ./...