Skip to content

Commit e0f539b

Browse files
committed
CI: push coverage file for unit tests
1 parent 8597ee3 commit e0f539b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ jobs:
232232
if: matrix.unit_type == 'unit-cover'
233233
with:
234234
path-to-profile: coverage.txt
235+
flag-name: 'unit'
235236
parallel: true
236237

237238
########################
@@ -289,3 +290,13 @@ jobs:
289290
name: logs-itest-postgres
290291
path: logs-itest-postgres.zip
291292
retention-days: 5
293+
294+
# Notify about the completion of all coverage collecting jobs.
295+
finish:
296+
if: ${{ always() }}
297+
needs: [unit-test]
298+
runs-on: ubuntu-latest
299+
steps:
300+
- uses: shogo82148/actions-goveralls@v1
301+
with:
302+
parallel-finished: true

make/testing_flags.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RPC_TAGS = autopilotrpc chainrpc invoicesrpc peersrpc routerrpc signrpc verrpc w
44
LOG_TAGS =
55
TEST_FLAGS =
66
ITEST_FLAGS = -logoutput
7+
COVER_PKG = $$(go list -deps -tags="$(DEV_TAGS)" ./... | grep '$(PKG)' | grep -v taprpc)
78
COVER_HTML = go tool cover -html=coverage.txt -o coverage.html
89
POSTGRES_START_DELAY = 5
910

0 commit comments

Comments
 (0)