@@ -218,11 +218,11 @@ jobs:
218
218
fail-fast : false
219
219
matrix :
220
220
unit_type :
221
- - btcd unit-cover
221
+ - unit-cover
222
222
- unit tags="kvdb_etcd"
223
223
- unit tags="kvdb_postgres"
224
224
- unit tags="kvdb_sqlite"
225
- - btcd unit-race
225
+ - unit-race
226
226
- unit-module
227
227
228
228
steps :
@@ -259,13 +259,18 @@ jobs:
259
259
- name : run ${{ matrix.unit_type }}
260
260
run : make ${{ matrix.unit_type }}
261
261
262
+ - name : Clean coverage
263
+ run : grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
264
+ if : matrix.unit_type == 'unit-cover'
265
+
262
266
- name : Send coverage
263
- uses : ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
264
- if : matrix.unit_type == 'btcd unit-cover'
267
+ uses : coverallsapp/github-action@v2
268
+ if : matrix.unit_type == 'unit-cover'
265
269
continue-on-error : true
266
270
with :
267
- path-to-profile : coverage.txt
271
+ file : coverage-norpc .txt
268
272
flag-name : ' unit'
273
+ format : ' golang'
269
274
parallel : true
270
275
271
276
@@ -314,13 +319,18 @@ jobs:
314
319
- name : run ${{ matrix.name }}
315
320
run : make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
316
321
322
+ - name : Clean coverage
323
+ run : grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
324
+ if : ${{ contains(matrix.args, 'cover=1') }}
325
+
317
326
- name : Send coverage
318
327
if : ${{ contains(matrix.args, 'cover=1') }}
319
328
continue-on-error : true
320
- uses : ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
329
+ uses : coverallsapp/github-action@v2
321
330
with :
322
- path-to-profile : coverage.txt
331
+ file : coverage-norpc .txt
323
332
flag-name : ' itest-${{ matrix.name }}'
333
+ format : ' golang'
324
334
parallel : true
325
335
326
336
- name : Zip log files on failure
@@ -382,13 +392,18 @@ jobs:
382
392
- name : run ${{ matrix.name }}
383
393
run : make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
384
394
395
+ - name : Clean coverage
396
+ run : grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
397
+ if : ${{ contains(matrix.args, 'cover=1') }}
398
+
385
399
- name : Send coverage
386
400
if : ${{ contains(matrix.args, 'cover=1') }}
387
401
continue-on-error : true
388
- uses : ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
402
+ uses : coverallsapp/github-action@v2
389
403
with :
390
- path-to-profile : coverage.txt
404
+ file : coverage-norpc .txt
391
405
flag-name : ' itest-${{ matrix.name }}'
406
+ format : ' golang'
392
407
parallel : true
393
408
394
409
- name : Zip log files on failure
@@ -552,7 +567,7 @@ jobs:
552
567
runs-on : ubuntu-latest
553
568
steps :
554
569
- name : Send coverage
555
- uses : ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
570
+ uses : coverallsapp/github-action@v2
556
571
continue-on-error : true
557
572
with :
558
573
parallel-finished : true
0 commit comments