Report Benchmark Results #309
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 Benchmark Results | |
| on: | |
| workflow_run: | |
| workflows: ["Receive Pull Request"] | |
| types: | |
| - completed | |
| jobs: | |
| publish-test-results: | |
| name: Report Benchmark Results | |
| runs-on: ubuntu-latest | |
| # the build-and-test job might be skipped, we don't need to run this job then | |
| if: > | |
| ${{ github.event.workflow_run.event == 'pull_request' && | |
| ( github.event.workflow_run.conclusion == 'success' || | |
| github.event.workflow_run.conclusion == 'failure' ) }} | |
| steps: | |
| - name: 'Download artifact' | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: benchmark-results | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| run-id: ${{ github.event.workflow_run.id }} | |
| - name: 'Report benchmark result' | |
| run: cat ./NHapi.Benchmarks.LargeEmbeddedFileTest-report-github.md >> $GITHUB_STEP_SUMMARY |