1 on: [push, pull_request]
6 GOPATH: ${{ github.workspace }}
9 working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
12 go-version: [1.8.x, 1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x]
13 os: [ubuntu-latest, macos-latest]
14 runs-on: ${{ matrix.os }}
17 uses: actions/setup-go@v2
19 go-version: ${{ matrix.go-version }}
21 uses: actions/checkout@v2
23 path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
24 - name: Checkout dependencies
25 run: go get golang.org/x/xerrors
27 run: go test -v -race ./...
29 if: matrix.go-version == '1.15.x'
30 run: diff -u <(echo -n) <(gofmt -d .)