Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cklutz committed Oct 10, 2024
1 parent 38c1a90 commit 8a419af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
reports: '${{ github.workspace }}/TestResults-${{ matrix.tfm }}-${{ matrix.configuration }}/**/*.cobertura.xml'
targetdir: '${{ github.workspace }}/coveragereport'
reporttypes: 'MarkdownSummaryGithub'
assemblyfilters: '-*.Tests;-LCTestTarget.*'
assemblyfilters: '-*.Tests;-LCTestTarget*'

- name: Add coverage report to summary
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,24 @@ jobs:
dotnet test
--no-build
--framework ${{ matrix.tfm }}
--collect "Code Coverage;Format=Cobertura"
--verbosity normal
--configuration ${{ matrix.configuration }}
--logger trx
--results-directory "TestResults-${{ matrix.tfm }}-${{ matrix.configuration }}"
- name: Generage coverage report
uses: danielpalme/[email protected]
with:
reports: '${{ github.workspace }}/TestResults-${{ matrix.tfm }}-${{ matrix.configuration }}/**/*.cobertura.xml'
targetdir: '${{ github.workspace }}/coveragereport'
reporttypes: 'MarkdownSummaryGithub'
assemblyfilters: '-*.Tests;-LCTestTarget*'

- name: Add coverage report to summary
run: cat $GITHUB_WORKSPACE/coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
shell: bash

- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 8a419af

Please sign in to comment.