Report test results for 'master' / Fix IsNetCore and IsNativeAOT for single-file apps without AOT (#2799)
* Fix IsNetCore check for single-file apps without AOT, and IsNativeAOT check.
* Handle TryGetVersion for single-file exe in netcoreapp3.x.
* Simplify some checks.
* Get version from FrameworkDescription.
* Don't include confusing FrameworkDescription in netcoreapp2.x.
* Rename GetVersionFromFrameworkDescription.
#1533
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| if: ${{ github.event.workflow_run.conclusion != 'cancelled' }} | |
| 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@v6 | |
| 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 |