github.com/kortschak/utter@v1.5.0/.github/workflows/go.yml (about)

     1  name: Test
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  jobs:
    10    test:
    11      strategy:
    12        matrix:
    13          go-version: [1.14.x, 1.15.x, 1.16.x, 1.17.x]
    14          os: [ubuntu-latest]
    15      runs-on: ${{ matrix.os }}
    16  
    17      steps:
    18      - name: Install Go
    19        uses: actions/setup-go@v2
    20        with:
    21          go-version: ${{ matrix.go-version }}
    22  
    23      - name: Checkout code
    24        uses: actions/checkout@v2
    25  
    26      - name: Test
    27        run: go test -v -tags=testcgo
    28  
    29      - name: Test Race
    30        run: go test -v -race -tags=testcgo