From 8bfe66e725150c61b28dd37e8751b93fa52debc8 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 1 Nov 2019 02:13:04 -0500 Subject: [PATCH] split coveralls --- .github/workflows/ci-build.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 6cd773e3..afcb3aaf 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -50,12 +50,24 @@ jobs: --enable=unparam --enable=varcheck --enable=deadcode --enable=typecheck \ --enable=ineffassign --enable=varcheck ./... ; - - name: submit coverage - run: | - cd backend - $(go env GOPATH)/bin/goveralls -service="GitHub Action" -coverprofile=$GITHUB_WORKSPACE/profile.cov -repotoken $COVERALLS_TOKEN - env: - COVERALLS_TOKEN: ${{secrets.COVERALLS_TOKEN}} + - name: convert coverage to lcov + uses: jandelgado/gcov2lcov-action@v1.0.0 + with: + infile: $GITHUB_WORKSPACE/profile.cov + outfile: $GITHUB_WORKSPACE/coverage.lcov + + - name: submit to coveralls + uses: coverallsapp/github-action@v1.0.1 + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: coverage.lcov +# +# - name: submit coverage +# run: | +# cd backend +# $(go env GOPATH)/bin/goveralls -service="GitHub Action" -coverprofile=$GITHUB_WORKSPACE/profile.cov -repotoken $COVERALLS_TOKEN +# env: +# COVERALLS_TOKEN: ${{secrets.COVERALLS_TOKEN}} - name: build docker image run: docker build --build-arg SKIP_BACKEND_TEST=true --build-arg CI=github .