Develop#14
Conversation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Refactored TryActionResult to use regular constructor instead of primary constructor parameters to: - Eliminate redundant property initializations that shadowed parameters - Ensure compatibility with older .NET frameworks (netstandard2.0, net462) - Maintain consistency with TryFuncResult pattern - Add proper XML documentation for the main constructor Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
[WIP] Address feedback from review on initial implementation
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Remove redundant property initializations in TryActionResult
# Conflicts: # tests/TryPattern.Tests/TryPattern.Tests.csproj
…sualstudio-3.1.5'
…sualstudio-3.1.5' into develop # Conflicts: # tests/TryPattern.Tests/TryPattern.Tests.csproj
…est.Sdk-18.0.1' into develop # Conflicts: # tests/TryPattern.Tests/TryPattern.Tests.csproj
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Added TryActionResultTests.cs and TryFuncResultTests.cs to cover constructors and property assignments for both result classes. Tests include various scenarios (success, failure, exceptions) and multiple data types, using xUnit for comprehensive coverage and improved reliability.
Added TryPattern.Tests.csproj with xUnit and coverage tools for .NET 8.0. The test project references the main TryPattern project. Also removed the explicit <Version> tag from Wolfgang.TryPattern.csproj.
Added --output-file devskim-results.txt to the DevSkim analyze command in the workflow, ensuring scan results are saved to a file for easier access and review. No other workflow changes were made.
- Add continue-on-error to DevSkim scan to prevent workflow failure on findings - Exclude **/TestResults/** from scan via ignore-globs - Always show DevSkim results, with fallback message if no output - Set artifact upload to warn if results file is missing
Refactored Wolfgang.TryPattern.Tests.csproj to use conditional ItemGroups for framework-specific test dependencies, improving maintainability and compatibility. Updated TryFuncResult.cs constructor formatting for consistency (tabs instead of spaces) with no logic changes. Removed net9.0 from main project target frameworks; test project still targets net9.0. No functional code changes.
Added build-and-test-windows job to pr.yaml for building and testing on Windows with .NET 3.1–9.0, including code coverage and artifact upload. Also introduced build-and-test-macos job for .NET 5+ on macOS. Both jobs skip execution in the template repository.
- Refactored GitHub Actions to use matrix builds for Ubuntu, Windows, and macOS - Added .NET 10.0.x support across workflows - Improved error handling for label creation; added "dependencies" and "dotnet" labels - Enhanced DocFX workflow with build output verification - Separated build/test logic for Linux/macOS and Windows; coverage reporting now Windows-only - Improved artifact uploads with OS-specific naming - Security scanning now runs on all platforms with better reporting and failure detection
Major overhaul of pr.yaml GitHub Actions workflow: - Split into 3 gated stages: Linux (with 90% coverage gate), then Windows/macOS, then .NET Framework 4.x on Windows - Only proceed to next stage if previous passes - Coverage enforcement now on Linux, with clear per-module threshold - Artifacts for coverage and build outputs uploaded per stage - Security scan (DevSkim) runs in parallel with improved output - Workflow ignores docs/markdown changes for PR triggers - Improved modularity, logs, and error handling for maintainability
Added a step in the GitHub Actions workflow to install libssl1.1 on Ubuntu 22.04+ for the test-linux-core job. This ensures .NET Core 3.1 compatibility, as libssl1.1 is not included by default in newer Ubuntu versions.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Removed .NET Core 3.1 from the test matrix in the CI pipeline, so only net5.0 through net10.0 are tested. Added an informational step to echo a message on macOS runners explaining the skip of .NET Core 3.1 due to lack of ARM64 support, and clarifying that it is still tested on Linux and Windows.
|
@Chris-Wolfgang I've opened a new pull request, #15, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@Chris-Wolfgang I've opened a new pull request, #16, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@Chris-Wolfgang I've opened a new pull request, #17, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
@Chris-Wolfgang I've opened a new pull request, #18, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@Chris-Wolfgang I've opened a new pull request, #19, to work on those changes. Once the pull request is ready, I'll request review from you. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 25 out of 28 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
tests/Wolfgang.TryPattern.Tests/TryActionAsyncTests.cs:109
- Missing space after the comma. Should be "Assert.Equal(3, callCount);" for consistency with other assertions in the codebase.
| await action().ConfigureAwait(false); | ||
| return new TryActionResult(true, null); | ||
| } | ||
| catch(Exception ex) |
There was a problem hiding this comment.
Missing space after "catch" keyword. According to C# formatting standards, there should be a space between "catch" and the opening parenthesis.
| catch(Exception ex) | |
| catch (Exception ex) |
[WIP] Address feedback on 'Develop' PR for improvements
…-time [WIP] WIP address feedback from review on develop PR
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 25 out of 28 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
tests/Wolfgang.TryPattern.Tests/TryActionAsyncTests.cs:109
- Missing space before the closing parenthesis. Should be "Assert.Equal(3, callCount);" for consistency with the rest of the codebase.
Updated Wolfgang.TryPattern.csproj to set the project version to 0.1.0-rc1, marking this build as a release candidate. No other changes were made.
Description
Fixes/Complete # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist
Screenshots (if applicable)
Additional context