github.com/thediveo/gons@v0.9.9/.github/workflows/buildandtest.yaml (about)

     1  name: build and test
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7      branches:
     8        - master
     9        - develop
    10  
    11  jobs:
    12    buildandtest:
    13      name: Build and Test on Go ${{matrix.go}}
    14      runs-on: ubuntu-latest
    15      strategy:
    16        matrix:
    17          go: [ 'stable', 'oldstable' ]
    18  
    19      steps:
    20        - name: Set up Go ${{matrix.go}}
    21          uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # pin@v4
    22          with:
    23            go-version: ${{matrix.go}}
    24          id: go
    25  
    26        - name: Check out code into the Go module directory
    27          uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3
    28  
    29        - name: Test Go packages
    30          run: go test -v -race -p=1 -count=1 ./...