github.com/kortschak/goroutine@v1.1.1/.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          os: [ubuntu-latest, macos-latest]
    14          go-version:
    15            - 1.14.x
    16            - 1.15.x
    17            - 1.16.x
    18            - 1.17.x
    19            - 1.18.x
    20            - 1.19.x
    21            - 1.20.x
    22            - 1.21.x
    23      runs-on: ${{ matrix.os }}
    24  
    25      steps:
    26      - name: Install Go
    27        uses: actions/setup-go@v2
    28        with:
    29          go-version: ${{ matrix.go-version }}
    30  
    31      - name: Checkout code
    32        uses: actions/checkout@v2
    33  
    34      - name: Test
    35        run: go test ./...
    36  
    37    test_race:
    38      strategy:
    39        matrix:
    40          os: [ubuntu-latest, macos-latest]
    41          go-version:
    42            - 1.14.x
    43            - 1.15.x
    44            - 1.16.x
    45            - 1.17.x
    46            - 1.18.x
    47            - 1.19.x
    48            - 1.20.x
    49            - 1.21.x
    50      runs-on: ${{ matrix.os }}
    51  
    52      steps:
    53      - name: Install Go
    54        uses: actions/setup-go@v2
    55        with:
    56          go-version: ${{ matrix.go-version }}
    57  
    58      - name: Checkout code
    59        uses: actions/checkout@v2
    60  
    61      - name: Test Race
    62        run: go test -race ./...