name: build on: [push, pull_request] jobs: build: strategy: matrix: go-version: [1.21.x, 1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} id: go - name: Build run: go build -v - name: Test run: go test -v ./...