Skip to content

Commit

Permalink
Merge pull request #36 from microsoft/dornyFix
Browse files Browse the repository at this point in the history
Fixes dorny report for external PRs.
  • Loading branch information
azchohfi committed May 11, 2024
2 parents aa99dc4 + 678048b commit ed11cc8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ jobs:
CollectCoverage: true
CoverletOutputFormat: cobertura
run: dotnet test MSStore.CLI.sln --no-restore /p:Configuration=Release --logger trx & wait
- name: Display test results
uses: dorny/test-reporter@v1
if: always()
- name: Publish test results
if: ${{ !env.ACT }} && (success() || failure())
uses: actions/upload-artifact@v3
with:
name: Test - Results - ${{ matrix.os }}
name: test-results-${{ matrix.os }}
path: MSStore.CLI.UnitTests/TestResults/*.trx
reporter: dotnet-trx
- name: Install ReportGenerator
run: dotnet tool install --global dotnet-reportgenerator-globaltool --version 5.2.2
- name: Merge code coverage files
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['CI'] # runs after CI workflow
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
strategy:
fail-fast: false
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Display test results
uses: dorny/test-reporter@v1
with:
artifact: test-results-${{ matrix.os }}
name: Test - Results - ${{ matrix.os }}
path: '*.trx'
reporter: dotnet-trx

0 comments on commit ed11cc8

Please sign in to comment.