Skip to content

Commit fcd8e09

Browse files
committed
Update dotnet.yml
1 parent 336f00f commit fcd8e09

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,19 @@ jobs:
4444
- name: Run Test
4545
run: dotnet test --no-build --configuration Release --coverlet --coverlet-output-format lcov
4646

47-
- name: Report Coverage
47+
- name: Collect Coverage
4848
if: success()
49+
id: coverage
50+
run: |
51+
FILES=$(find ${{github.workspace}} -name 'coverage.*.info' -print | tr '\n' ' ')
52+
echo "files=$FILES" >> $GITHUB_OUTPUT
53+
54+
- name: Report Coverage
55+
if: success() && steps.coverage.outputs.files != ''
4956
uses: coverallsapp/github-action@v2
5057
continue-on-error: true
5158
with:
59+
files: ${{ steps.coverage.outputs.files }}
5260
format: lcov
5361

5462
- name: Create Packages

0 commit comments

Comments
 (0)