name: Test on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: name: Build runs-on: ubuntu-latest strategy: matrix: go: - '1.20' - '1.19' - '1.18' - '1.17' - '1.16' - '1.15' - '1.14' - '1.13' steps: - name: Go ${{ matrix.go }} test uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Get dependencies run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest - name: Lint run: make lint - name: Test run: make test - name: Bench run: make bench