split coveralls

This commit is contained in:
Umputun
2019-11-01 02:13:04 -05:00
parent 37b2f48144
commit 8bfe66e725
+18 -6
View File
@@ -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 .