github.com/cockroachdb/swiss@v0.0.0-20240303172742-c161743eb608/.github/workflows/ci.yaml (about)

     1  name: Test
     2  
     3  on:
     4    push:
     5      branches: [ "main" ]
     6    pull_request:
     7      branches: [ "main" ]
     8  
     9  jobs:
    10    test:
    11      strategy:
    12        matrix:
    13          os:
    14            - ubuntu-latest
    15            - macos-latest
    16          go:
    17            - '1.21'
    18            - '1.22'
    19  
    20      runs-on: ${{ matrix.os }}
    21  
    22      steps:
    23      - uses: actions/checkout@v2
    24  
    25      - name: Set up Go
    26        uses: actions/setup-go@v4
    27        with:
    28          go-version: ${{ matrix.go }}
    29  
    30      - run: go test -v -tags swiss_invariants
    31  
    32    linux-race:
    33      name: go-linux-race
    34      runs-on: ubuntu-latest
    35      steps:
    36        - uses: actions/checkout@v2
    37  
    38        - name: Set up Go
    39          uses: actions/setup-go@v4
    40          with:
    41            go-version: "1.22"
    42  
    43        - run: go test -v -race
    44  
    45    linux-32bit:
    46      name: go-linux-32bit
    47      runs-on: ubuntu-latest
    48      steps:
    49        - uses: actions/checkout@v2
    50  
    51        - name: Set up Go
    52          uses: actions/setup-go@v4
    53          with:
    54            go-version: "1.22"
    55  
    56        - run: GOARCH=386 go test -v -tags swiss_invariants