Generate Test Report for chore(deps): bump uuid and mermaid in /templates
Bumps [uuid](https://github.com/uuidjs/uuid) to 14.0.0 and updates ancestor dependency [mermaid](https://github.com/mermaid-js/mermaid). These dependencies need to be updated together.
Updates uuid from 11.1.0 to 14.0.0
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v11.1.0...v14.0.0)
Updates `me...
#1699
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: Generate Test Report for ${{ github.event.workflow_run.head_commit.message }} | |
| on: | |
| workflow_run: | |
| workflows: | |
| - ci | |
| - nightly | |
| types: | |
| - completed | |
| permissions: | |
| contents: read | |
| actions: read | |
| checks: write | |
| jobs: | |
| report: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }} | |
| steps: | |
| - name: Create Test Report | |
| uses: dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637 # v2.5.0 | |
| id : test-reports | |
| with: | |
| artifact: /^logs-(.*)/ # Name of artifact to report | |
| name: test-results # Name of the `check run` which will be created | |
| path: 'test/TestResults/*.trx' | |
| reporter: dotnet-trx | |
| fail-on-error: false | |
| fail-on-empty: false | |
| - name: Output message to job summary | |
| id: output-job-summary | |
| shell: pwsh | |
| if: ${{ steps.test-reports.outputs.time != '0' }} | |
| run: | | |
| $conclusion = "${{ steps.test-reports.outputs.conclusion }}" | |
| $passed = "${{ steps.test-reports.outputs.passed }}" | |
| $failed = "${{ steps.test-reports.outputs.failed }}" | |
| $skipped = "${{ steps.test-reports.outputs.skipped }}" | |
| $time = "${{ steps.test-reports.outputs.time }}" | |
| $url_html = "${{ steps.test-reports.outputs.url_html }}" | |
| $content = @" | |
| ## Summary of Test Report | |
| - **Report URL**: $url_html | |
| | Conclusion | Passed | Failed | Skipped | Time | | |
| |-------------|---------|---------|----------|------------| | |
| | $conclusion | $passed | $failed | $skipped | $time [ms] | | |
| "@ | |
| Write-Output $content >> $env:GITHUB_STEP_SUMMARY | |
| if($failed -ne '0'){ | |
| echo "::error::Test Report contains ${failed} errors." | |
| exit 1 | |
| } |