Publish CI test results into PR discussions and harden artifact download action#570
Open
Copilot wants to merge 5 commits into
Open
Publish CI test results into PR discussions and harden artifact download action#570Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add test results publishing to PR discussion
Publish CI test results into PR discussions and harden artifact download action
May 17, 2026
xperiandri
approved these changes
May 17, 2026
0523a39 to
7894f66
Compare
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/ae314b8b-9c8a-4f87-a8b0-b77c4bfa2cef Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/ae314b8b-9c8a-4f87-a8b0-b77c4bfa2cef Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/ae314b8b-9c8a-4f87-a8b0-b77c4bfa2cef Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
7894f66 to
52c17c5
Compare
There was a problem hiding this comment.
Pull request overview
Adds CI-driven PR test result publishing by producing TRX test artifacts in the build, uploading them from PR runs, and adding a privileged workflow_run publisher to report results back to PRs.
Changes:
- Configures
dotnet testto emit TRX files intotest-results. - Uploads event payload and test-result artifacts from the PR workflow.
- Adds a new workflow to download artifacts and publish test results to PR checks/discussions.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
build/Program.fs |
Adds TRX logger/results directory configuration for the unit test runner. |
.github/workflows/pull-request.yml |
Adds explicit permissions and uploads PR event/test result artifacts. |
.github/workflows/publish-test-results.yml |
Adds workflow-run based test result publishing using downloaded artifacts. |
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/aa451f1b-8f2c-4148-b6fe-ac4d6356af9f Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Data.GraphQL/sessions/75e24ea8-3ef8-4ff9-b896-387e88504c2a Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Comment on lines
+54
to
+59
| uses: EnricoMi/publish-unit-test-result-action@v2 | ||
| with: | ||
| commit: ${{ github.event.workflow_run.head_sha }} | ||
| event_file: ${{ steps.event_file.outputs.path }} | ||
| event_name: ${{ github.event.workflow_run.event }} | ||
| files: "test-results/**/*.trx" |
| with: | ||
| run_id: ${{ github.event.workflow_run.id }} | ||
| path: test-results | ||
| pattern: test-results-* |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.