name: Test on: push: branches: - master pull_request: jobs: test: strategy: matrix: go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - run: go version - run: go test ./... - run: go test -race ./...