Skip to content

Report test results for 'master' / Fixed GitHub workflow report for failed tests (#2653) * changed target framework to .net 8.0 * Added a failing test * Update run-tests.yaml * try again * changed yaml files * Revert "try again" This reverts commit 1995f60de5d266087e6c88ad31f3b655ec7277ae. * Revert "Added a failing test" This reverts commit 1bcb1a19029d574191436c4627c8449b8b18f525. * Final yaml files * added target framework back for PR #1035

Report test results for 'master' / Fixed GitHub workflow report for failed tests (#2653) * changed target framework to .net 8.0 * Added a failing test * Update run-tests.yaml * try again * changed yaml files * Revert "try again" This reverts commit 1995f60de5d266087e6c88ad31f3b655ec7277ae. * Revert "Added a failing test" This reverts commit 1bcb1a19029d574191436c4627c8449b8b18f525. * Final yaml files * added target framework back for PR

Report test results for 'master' / Fixed GitHub workflow report for failed tests (#2653) * changed target framework to .net 8.0 * Added a failing test * Update run-tests.yaml * try again * changed yaml files * Revert "try again" This reverts commit 1995f60de5d266087e6c88ad31f3b655ec7277ae. * Revert "Added a failing test" This reverts commit 1bcb1a19029d574191436c4627c8449b8b18f525. * Final yaml files * added target framework back for PR #1035

name: report-test-results
run-name: Report test results for '${{ github.event.workflow_run.head_branch }}' / ${{ github.event.workflow_run.head_commit.message }}
on:
workflow_run:
workflows: [ 'run-tests' ]
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
permissions: write-all
steps:
# Cleanup Old Files
- name: Cleanup Old Files
run: rm -rf $GITHUB_WORKSPACE/*.trx
# Download the Latest Artifacts with Unique Name
- name: Download Artifacts
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ github.event.workflow_run.id }}
# Display the Structure of Downloaded Files
- name: Display structure of downloaded files
run: ls -R
# Display the Contents of .trx Files
- name: Display .trx file contents
run: cat **/*.trx || echo "No .trx files found"
- name: Report tests results
uses: AndreyAkinshin/test-reporter@0e2c48ebec2007001dd77dd4bcbcd450b96d5a38
with:
name: report
path: "**/*.trx"
reporter: dotnet-trx
fail-on-error: true