github.com/glebarez/go-sqlite@v1.21.1/.github/workflows/tests.yml (about)

     1  name: Tests
     2  
     3  on:
     4    push:
     5    pull_request:
     6  
     7  jobs:
     8    test:
     9      strategy:
    10        matrix:
    11          go: ['1.17','1.18', '1.19']
    12          platform: [ubuntu-latest, macos-latest, windows-latest]
    13      runs-on: ${{ matrix.platform }}
    14  
    15      steps:
    16      - name: Set up Go
    17        uses: actions/setup-go@v3
    18        with:
    19          go-version: ${{ matrix.go }}
    20          check-latest: true
    21          
    22      - run: go version
    23  
    24      - uses: actions/checkout@v3
    25  
    26      - name: go mod package cache
    27        uses: actions/cache@v3
    28        with:
    29          path: ~/go/pkg/mod
    30          key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('**/go.mod') }}
    31  
    32      - name: Test
    33        run: go test -v ./...