Skip to content

Fix release.yml Test step hanging by specifying target frameworks#87

Merged
PhenX merged 2 commits intomainfrom
copilot/update-release-workflow-tests
Dec 21, 2025
Merged

Fix release.yml Test step hanging by specifying target frameworks#87
PhenX merged 2 commits intomainfrom
copilot/update-release-workflow-tests

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 21, 2025

The release workflow's Test step hangs indefinitely because dotnet test runs without a --framework flag on a multi-targeted project (net8.0;net9.0).

Changes

  • Split single Test step into two framework-specific steps with explicit --framework flags
  • Matches the approach used in the working dotnet-test.yml workflow
# Before
- name: Test
  run: dotnet test --configuration Release --no-restore --no-build --verbosity normal

# After  
- name: Test net8.0
  run: dotnet test --configuration Release --no-restore --no-build --verbosity normal --framework net8.0

- name: Test net9.0
  run: dotnet test --configuration Release --no-restore --no-build --verbosity normal --framework net9.0
Original prompt

the release.yml workflow never ends, during the Test step, while the dotnet-test.yml does not. I think thats because dotnet test is not executed with a target framework. Is it possible to change this workflow to run tests like in dotnet-test.yml ?


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues with test step in release workflow Fix release.yml Test step hanging by specifying target frameworks Dec 21, 2025
Copilot AI requested a review from PhenX December 21, 2025 17:55
@PhenX PhenX marked this pull request as ready for review December 21, 2025 17:56
@PhenX PhenX merged commit 844a080 into main Dec 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants