diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9ed77f93..698e9211 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -29,11 +29,15 @@ jobs: run: go generate ./... - name: Test - run: go test -v ./... ./example-nonposix/... + run: go test -v -coverprofile=profile.cov ./... ./example-nonposix/... - name: "Check formatting" run: '[ "$(gofmt -d -s . | tee -a /dev/stderr)" = "" ]' + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 if: startsWith(github.ref, 'refs/tags/')