Commit d43d440
GH4629: Update Verify.XunitV3 to 31.0.4 (cake-build#4630)
(cake-buildGH-4629) Update Verify.XunitV3 to 31.0.4
* fixes cake-build#4629
GH4631: GitHub Actions Workflow Updates (cake-build#4632)
* (cake-buildGH-4631) GitHub Actions Workflow Updates
### Action Version Updates
- `actions/checkout`: v4 → v5
- `actions/setup-dotnet`: v4 → v5
- `cake-build/cake-action`: master → v3.0.1
- CodeQL actions: v2 → v4
### Build Matrix Changes
- **Removed**: `macos-13` (deprecated)
- **Added**: `macos-15-intel` and `macos-latest` runners
- Maintained existing `windows-latest` and `ubuntu-latest`
### CodeQL Improvements
- Added explicit `build-mode: 'autobuild'`
- Added .NET SDK 8.0.x/9.0.x setup steps
- Added `CAKE_INSTALL_SUPPORTED_SDKS: true` env var (to implicit install all SDKs for build script phase)
### New .NET Support
- Added .NET 10.0 validation: `CAKE_NETCOREAPP_10_0_VERSION_OS`
- fixes cake-build#4631
* feat: Improve GitHub Actions integration and test coverage
- Include runner architecture in artifact naming and validation
- Update BuildData record to include Architecture field
- Add .NET 10.0 path validation in integration tests
- Update Cake.Git addin version from 4.0.0 to 5.0.1
- Skip native assembly loading tests on ARM64 runners
* feat: Include runner architecture in GitHub Actions artifact naming
- Add runner architecture to artifact name for better identification
- Ensures unique artifact names across different runner architectures
GH4627: Add explicit path type support for .NET 10+ compatibility (cake-build#4633)
(cake-buildGH-4627) Add explicit path type support for .NET 10+ compatibility
Adds DotNetTestPathType enum and PathType property to DotNetTestSettings to
support explicit --project and --solution parameters required by .NET 10+.
Changes:
- Add DotNetTestPathType enum with None, Auto, Project, and Solution values
- Add PathType property to DotNetTestSettings (defaults to None for backward compatibility)
- Update DotNetTester to handle path type logic with switch expressions
- Add comprehensive unit tests covering all path type scenarios
- Support auto-detection based on file extensions (.sln, .csproj, .vbproj, .fsproj, .vcxproj)
Resolves cake-build#4627
(cake-buildGH-4638) Update Spectre.Console to 0.53.0
- fixes cake-build#4638
cake-buildGH-4639: Enable Spectre.Console report printer by default
Also fixes some bugs with the initial implementation, as well as
making sure that the borders have a safe (non-unicode) fallback.
Closes cake-build#4639
(cake-buildGH-4636) Enhance FileSystem Abstractions & tests
Added timestamps, Unix modes, performance improvements and dedicated for Fake File/Directory.
- Add comprehensive timestamp and Unix file mode support across IFile/IDirectory interfaces
- Implement LastWriteTimeUtc, CreationTimeUtc, LastAccessTimeUtc, and UnixFileMode properties
- Add Set* methods for timestamp and Unix file mode manipulation
- Improve performance by replacing GetFiles/GetDirectories with EnumerateFiles/EnumerateDirectories
- Create dedicated Cake.Testing.Tests project with comprehensive unit test coverage
- Add snapshot testing with Verify for FakeFile and FakeDirectory operations
- Fill gaps in file system abstraction with cross-platform Unix file mode support
- Integrate Microsoft.Extensions.TimeProvider.Testing for reliable time handling in tests
- Refactor FakeDirectory to use yield return for lazy evaluation performance benefits
- Add extensive test coverage for Create, Move, Delete, GetDirectories, and GetFiles operations
- fixes cake-build#4636
### Breaking Changes
- [x] There shouldn't be any breaking changes identified, all new interface members have default implementations / values.
#### IFileSystemInfo Interface (Base interface)
- [x] `DateTime? LastWriteTimeUtc` - Default: `null`
- [x] `DateTime? CreationTimeUtc` - Default: `null`
- [x] `DateTime? LastAccessTimeUtc` - Default: `null`
- [x] `UnixFileMode? UnixFileMode` - Default: `null`
#### IDirectory Interface
- [x] `IDirectory SetCreationTime(DateTime creationTime)` - Default: `return this`
- [x] `IDirectory SetCreationTimeUtc(DateTime creationTimeUtc)` - Default: `return this`
- [x] `IDirectory SetLastAccessTime(DateTime lastAccessTime)` - Default: `return this`
- [x] `IDirectory SetLastAccessTimeUtc(DateTime lastAccessTimeUtc)` - Default: `return this`
- [x] `IDirectory SetLastWriteTime(DateTime lastWriteTime)` - Default: `return this`
- [x] `IDirectory SetLastWriteTimeUtc(DateTime lastWriteTimeUtc)` - Default: `return this`
- [x] `IDirectory SetUnixFileMode(UnixFileMode unixFileMode)` - Default: `return this`
#### IFile Interface
- [x] `IFile SetUnixFileMode(UnixFileMode unixFileMode)` - Default: `return this`
### Key Changes Made
- [x] Added UTC time properties to IFileSystemInfo with default null values
- [x] Added Unix file mode support with UnixFileMode property and setter methods
- [x] Added time setter methods for both IDirectory and IFile interfaces
- [x] Performance improvement: Changed from GetDirectories()/GetFiles() to EnumerateDirectories()/EnumerateFiles()
- [x] Added _file.Refresh() calls after time-setting operations to ensure consistency
- [x] Added platform-specific attributes ([UnsupportedOSPlatform("windows")]) for Unix-specific methods1 parent 2e9ef34 commit d43d440
File tree
155 files changed
+4577
-290
lines changed- .github/workflows
- src
- Cake.Cli/Infrastructure
- Cake.Common.Tests/Unit/Tools/DotNet/Test
- Cake.Common/Tools/DotNet/Test
- Cake.Core/IO
- Cake.Frosting/Internal/Commands
- Cake.Testing.Tests
- Expectations
- Fixtures
- Unit
- Cake.Testing
- Extensions
- Cake
- Commands
- Infrastructure
- tests/integration
- Cake.Common/Build/GitHubActions
- Cake.Core/Scripting
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
155 files changed
+4577
-290
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | | - | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
28 | | - | |
| 43 | + | |
29 | 44 | | |
30 | 45 | | |
| 46 | + | |
31 | 47 | | |
32 | 48 | | |
33 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
34 | 52 | | |
35 | 53 | | |
36 | | - | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | | - | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | | - | |
30 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
34 | 59 | | |
35 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
34 | 58 | | |
35 | 59 | | |
0 commit comments