name: Build and Test on: [push, pull_request] jobs: build: name: Go CI runs-on: ubuntu-latest strategy: matrix: go: ["1.21", "1.22"] steps: - name: Set up Go uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 #v5.0.1 with: go-version: ${{ matrix.go }} - name: Check out source uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b #v4.1.5 - name: Build run: go build ./... - name: Install Linters run: "curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.1" - name: Test and Lint run: ./run_tests.sh