name: Build Status on: push: branches: [ main, master ] pull_request: branches: [ main, master ] jobs: test: strategy: matrix: go-version: [1.17.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} - name: Checkout uses: actions/checkout@v2 - name: Build run: go build -v ./... - name: Test run: go test ./...