Skip to content

Update working directory for dotnet workflow steps#3

Merged
porrey merged 1 commit intomasterfrom
porrey-patch-1
Apr 21, 2026
Merged

Update working directory for dotnet workflow steps#3
porrey merged 1 commit intomasterfrom
porrey-patch-1

Conversation

@porrey
Copy link
Copy Markdown
Owner

@porrey porrey commented Apr 21, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 21, 2026 03:20
@porrey porrey merged commit 97be7eb into master Apr 21, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adjusts the GitHub Actions .NET workflow to use a valid working directory for restore/build/test steps.

Changes:

  • Updates working-directory from a solution file path to the Src directory for restore/build/test steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 23 to +31
- name: Restore dependencies
run: dotnet restore
working-directory: Src/System.DisposableObject.sln
working-directory: Src
- name: Build
run: dotnet build --no-restore
working-directory: Src/System.DisposableObject.sln
working-directory: Src
- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: Src/System.DisposableObject.sln
working-directory: Src
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching working-directory to Src fixes the invalid directory issue, but the commands no longer explicitly target System.DisposableObject.sln. If Src contains multiple projects/solutions, dotnet restore/build/test may run against an unintended target or fail due to ambiguity. Consider invoking the solution explicitly (e.g., pass System.DisposableObject.sln to restore/build/test) while keeping working-directory: Src, or set run: to use the solution path from the repo root (and drop working-directory).

Copilot uses AI. Check for mistakes.
@porrey porrey deleted the porrey-patch-1 branch April 21, 2026 03:22
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