Skip to content

Commit db94fd6

Browse files
committed
Scope coverage calculation.
1 parent ab380f5 commit db94fd6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ jobs:
185185
- name: Coverage calculation
186186
if: ${{ matrix.coverage == 'lcov' }}
187187
shell: bash
188+
working-directory: 'libbitcoin-server'
188189
run: |
189190
lcov --ignore-errors version,gcov,mismatch,mismatch --directory . --capture --output-file coverage.info
190191
lcov --ignore-errors unused --remove coverage.info "${{ github.workspace }}/prefix/*" "${{ github.workspace }}/libbitcoin-server/examples/*" "${{ github.workspace }}/libbitcoin-server/test/*" --output-file coverage.info
@@ -194,7 +195,7 @@ jobs:
194195
uses: coverallsapp/github-action@v2.3.6
195196
with:
196197
format: lcov
197-
files: "./coverage.info"
198+
files: "libbitcoin-server/coverage.info"
198199
github-token: ${{ secrets.github_token }}
199200

200201
- name: Test artifact collection
@@ -401,6 +402,7 @@ jobs:
401402
- name: Coverage calculation
402403
if: ${{ matrix.coverage == 'lcov' }}
403404
shell: bash
405+
working-directory: 'libbitcoin-server'
404406
run: |
405407
lcov --ignore-errors version,gcov,mismatch,mismatch --directory . --capture --output-file coverage.info
406408
lcov --ignore-errors unused --remove coverage.info "${{ github.workspace }}/prefix/*" "${{ github.workspace }}/libbitcoin-server/examples/*" "${{ github.workspace }}/libbitcoin-server/test/*" --output-file coverage.info
@@ -410,7 +412,7 @@ jobs:
410412
uses: coverallsapp/github-action@v2.3.6
411413
with:
412414
format: lcov
413-
files: "./coverage.info"
415+
files: "libbitcoin-server/coverage.info"
414416
github-token: ${{ secrets.github_token }}
415417

416418
- name: Test artifact collection
@@ -577,6 +579,7 @@ jobs:
577579
- name: Coverage calculation
578580
if: ${{ matrix.coverage == 'lcov' }}
579581
shell: bash
582+
working-directory: 'libbitcoin-server'
580583
run: |
581584
lcov --ignore-errors version,gcov,mismatch,mismatch --directory . --capture --output-file coverage.info
582585
lcov --ignore-errors unused --remove coverage.info "${{ github.workspace }}/prefix/*" "${{ github.workspace }}/libbitcoin-server/examples/*" "${{ github.workspace }}/libbitcoin-server/test/*" --output-file coverage.info
@@ -586,7 +589,7 @@ jobs:
586589
uses: coverallsapp/github-action@v2.3.6
587590
with:
588591
format: lcov
589-
files: "./coverage.info"
592+
files: "libbitcoin-server/coverage.info"
590593
github-token: ${{ secrets.github_token }}
591594

592595
- name: Test artifact collection

0 commit comments

Comments
 (0)