name: Go on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: name: Build runs-on: ubuntu-latest strategy: matrix: golang: [1.14, 1.16] steps: - name: Set up Go ${{ matrix.golang }} uses: actions/setup-go@v1 with: go-version: ${{ matrix.golang }} id: go - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Get dependencies run: | go get -v -t -d ./... - name: Tests run: go test -race -v .