@@ -70,12 +70,16 @@ jobs:
7070 run : make testing-docker-images
7171
7272 - name : Unit Tests with Coverage
73- run : make unit-tests
73+ run : |
74+ make unit-tests
75+ ./ci/scripts/filter-coverage.sh profile.cov profile.cov
7476
7577 - name : Send coverage to Coveralls
7678 uses : shogo82148/actions-goveralls@v1
7779 with :
7880 path-to-profile : profile.cov
81+ flag-name : utest-${{ matrix.tests }}
82+ parallel : true
7983
8084 - name : Run ${{ matrix.tests }}
8185 run : make ${{ matrix.tests }}
@@ -165,4 +169,24 @@ jobs:
165169 make fxconfig configtxgen fabricx-docker-images
166170
167171 - name : Run ${{ matrix.tests }}
168- run : make integration-tests-${{ matrix.tests }}
172+ run : |
173+ mkdir -p covdata
174+ GOCOVERDIR=$(realpath covdata) make integration-tests-${{ matrix.tests }}
175+ go tool covdata textfmt -i=covdata -o coverage.profile
176+ ./ci/scripts/filter-coverage.sh coverage.profile coverage.profile
177+
178+ - name : Send coverage to Coveralls
179+ uses : shogo82148/actions-goveralls@v1
180+ with :
181+ path-to-profile : coverage.profile
182+ flag-name : itest-${{ matrix.tests }}
183+ parallel : true
184+
185+ publish-coverage :
186+ needs : [ utest, itest ]
187+ runs-on : ubuntu-latest
188+ steps :
189+ - name : Finish coverage report
190+ uses : shogo82148/actions-goveralls@v1
191+ with :
192+ parallel-finished : true
0 commit comments