github.com/palcoin-project/palcd@v1.0.0/.github/workflows/go.yml (about) 1 name: Build and Test 2 on: [push, pull_request] 3 jobs: 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.26.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 29 - name: Send coverage 30 uses: shogo82148/actions-goveralls@v1 31 with: 32 path-to-profile: profile.cov