Add GitHub Actions workflow for Update Dependencies Tests with TRX artifact upload#6688
Merged
lbussell merged 9 commits intoSep 29, 2025
Merged
Conversation
Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com>
Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update dependencies tests should run in PR validation
Add GitHub Actions workflow for Update Dependencies Tests
Sep 26, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a GitHub Actions workflow to automatically run UpdateDependencies.Tests in PR validation, as requested in issue #6669. The workflow ensures that changes to the update-dependencies tool are properly tested during pull request validation.
- Adds a new GitHub Actions workflow that triggers on relevant file changes
- Implements focused testing using standard .NET commands (restore, build, test)
- Uses minimal resources with ubuntu-latest runner and .NET 9.0.x setup
lbussell
approved these changes
Sep 26, 2025
mthalman
reviewed
Sep 26, 2025
Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com>
auto-merge was automatically disabled
September 26, 2025 18:36
Head branch was pushed to by a user without write access
Copilot
AI
changed the title
Add GitHub Actions workflow for Update Dependencies Tests
Add GitHub Actions workflow for Update Dependencies Tests with TRX publishing
Sep 26, 2025
mthalman
approved these changes
Sep 26, 2025
lbussell
requested changes
Sep 26, 2025
Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com>
Copilot
AI
changed the title
Add GitHub Actions workflow for Update Dependencies Tests with TRX publishing
Add GitHub Actions workflow for Update Dependencies Tests with TRX artifact upload
Sep 26, 2025
lbussell
approved these changes
Sep 26, 2025
mthalman
approved these changes
Sep 26, 2025
lbussell
added a commit
to lbussell/dotnet-docker
that referenced
this pull request
Oct 9, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com> Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
lbussell
added a commit
that referenced
this pull request
Oct 9, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lbussell <36081148+lbussell@users.noreply.github.com> Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
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.
Fixes #6669
This PR adds a new GitHub Actions workflow to run the
UpdateDependencies.Testsin PR validation, as requested in the issue.What's Added
A new workflow
.github/workflows/update-dependencies-tests.ymlthat:Triggers automatically on pull requests that modify:
eng/update-dependencies/**(the update-dependencies tool)tests/UpdateDependencies.Tests/**(the test project)Runs focused tests using standard .NET commands:
dotnet restoreto get dependenciesdotnet buildto compile the test projectdotnet testto execute only the UpdateDependencies.Tests (no other repo tests)Publishes test results with TRX artifact upload:
--logger trxactions/upload-artifact@v4Uses minimal resources with
ubuntu-latestrunner and .NET 9.0.x setup viaactions/setup-dotnet@v4Why This Approach
Following the discussion in the issue comments, this uses GitHub Actions (not Azure Pipelines) since:
dotnet-buildtools-prereqs-dockerThe workflow follows the same security and formatting patterns as existing workflows in the repository, using only GitHub-created actions with minimal permissions and proper YAML structure.
This ensures that any changes to the update-dependencies tool or its tests are automatically validated in PRs with TRX test results available as downloadable artifacts, improving code quality and catching issues early.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.