1name: Build and Test
2on: [push, pull_request]
3jobs:
4  build:
5    name: Go CI
6    runs-on: ubuntu-latest
7    strategy:
8      matrix:
9        go: [1.14, 1.15]
10    steps:
11      - name: Set up Go
12        uses: actions/setup-go@v2
13        with:
14          go-version: ${{ matrix.go }}
15      - name: Check out source
16        uses: actions/checkout@v2
17      - name: Install Linters
18        run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0"
19      - name: Build
20        env:
21          GO111MODULE: "on"
22        run: go build ./...
23      - name: Test
24        env:
25          GO111MODULE: "on"
26        run: |
27          sh ./goclean.sh
28      - name: Send btcutil coverage
29        uses: shogo82148/actions-goveralls@v1
30        with:
31          path-to-profile: profile.cov
32