github.com/flower-corp/rosedb@v1.1.2-0.20230117132829-21dc4f7b319a/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ main ]
     6    pull_request:
     7      branches: [ main ]
     8  
     9  jobs:
    10  
    11    build:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - uses: actions/checkout@v2
    15  
    16        - name: Set up Go
    17          uses: actions/setup-go@v2
    18          with:
    19            go-version: 1.16
    20  
    21        - name: Build
    22          run: go build -v
    23  
    24        - name: Unit Test
    25          run: go test -count 1 -v ./...
    26  
    27        - name: Benchmark Test
    28          working-directory: ./benchmark
    29          run: go test -count 1 -v -bench=. ./...