name: Go presubmit on: push: branches: - main pull_request: types: [opened, reopened, synchronize] jobs: build: name: Go presubmit runs-on: ubuntu-latest strategy: matrix: go-version: ['1.17', '1.18', '1.19'] steps: - name: Install Go ${{ matrix.go-version }} uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v3 - uses: creachadair/go-presubmit-action@v1 with: staticcheck-version: "2022.1.3"