Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "purview-build",
"version": "0.3.5",
"version": "0.3.6",
"private": true,
"homepage": "https://purview.dev/projects/build/",
"bugs": {
Expand Down
7 changes: 6 additions & 1 deletion src/src/Build/Modules/PackModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CancellationToken cancellationToken
return PackWebArtifact(context, nugetVersion.ToString());

var version = nugetVersion.ToString();
return await context
var result = await context
.DotNet()
.Pack(
new DotNetPackOptions
Expand All @@ -59,6 +59,10 @@ CancellationToken cancellationToken
},
cancellationToken: cancellationToken
);

context.Logger.LogInformation("Packed version {Version}.", version);

return result;
}

CommandResult? PackWebArtifact(IModuleContext context, string version)
Expand Down Expand Up @@ -94,6 +98,7 @@ CancellationToken cancellationToken
"Packed Web build output into {ZipPath}.",
Path.GetFileName(zipPath)
);
context.Logger.LogInformation("Packed version {Version}.", version);

return null;
}
Expand Down
6 changes: 5 additions & 1 deletion src/src/Build/Modules/RunTestsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,13 @@ CancellationToken cancellationToken
}

var testRoot = settings.Value.TestRoot;

// Enumerate with an absolute root so `dotnet test` receives an absolute `--project`:
// the Microsoft.Testing.Platform runner in .NET 11 RC1 duplicates the directory
// segments of a relative project path for multi-targeted projects (dotnet/sdk#56196).
var testProjects = FilterTestProjects(
Directory
.EnumerateFiles(testRoot, "*.csproj", SearchOption.AllDirectories)
.EnumerateFiles(Path.GetFullPath(testRoot), "*.csproj", SearchOption.AllDirectories)
.Where(project => IsTestProject(project, settings.Value.TestPatterns))
.ToList(),
settings.Value.TestProjects
Expand Down
Loading