Skip to content

Commit 1bd95c2

Browse files
committed
fix: souce available on coveralls
1 parent 88ed5d8 commit 1bd95c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,14 @@ jobs:
9292
run: |
9393
dart pub global run combine_coverage:combine_coverage --repo-path="./" --output-directory="coverage"
9494
95+
- name: Fix source file paths in LCOV
96+
run: |
97+
# Remove leading slash from source file paths to make them relative
98+
sed -i 's|^SF:/|SF:|g' coverage/lcov.info
99+
95100
- name: Upload combined coverage report
96101
uses: coverallsapp/github-action@v2
97102
with:
98103
github-token: ${{ secrets.GITHUB_TOKEN }}
99104
path-to-lcov: ./coverage/lcov.info
105+
base-path: ./

0 commit comments

Comments
 (0)