name: Build and Test on: pull_request: jobs: go-build: runs-on: ubuntu-latest strategy: matrix: go: [ '1.16', '1.15' ] name: Go ${{ matrix.go }} build steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Setup Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} - name: Build and test run: | go build ./... go test -race -coverprofile=profile.cov ./... - name: Send coverage uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov flag-name: Go-${{ matrix.go }} parallel: true coverage: needs: go-build name: Test Coverage runs-on: ubuntu-latest steps: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true