github.com/dolthub/go-mysql-server@v0.18.0/.github/workflows/test.yml (about)

     1  name: Test
     2  on: [pull_request]
     3  
     4  concurrency:
     5    group: test-${{ github.event.pull_request.number || github.ref }}
     6    cancel-in-progress: true
     7  
     8  jobs:
     9    test:
    10      strategy:
    11        matrix:
    12          go-version: [1.20.x]
    13          platform: [ubuntu-latest, macos-latest, windows-latest]
    14      runs-on: ${{ matrix.platform }}
    15      steps:
    16      - name: Install Go
    17        uses: actions/setup-go@v3
    18        with:
    19          go-version: ${{ matrix.go-version }}
    20      - name: Checkout code
    21        uses: actions/checkout@v3
    22      - name: Test
    23        if: ${{ matrix.platform != 'ubuntu-latest' }}
    24        run: go test ./...
    25        env:
    26          CI_TEST: "true"
    27      - name: Test
    28        if: ${{ matrix.platform == 'ubuntu-latest' }}
    29        run: go test -race ./...
    30        env:
    31          CI_TEST: "true"