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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 #v5.0.0 with: go-version: ${{ matrix.go }} - name: Check out source uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 - 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