Skip to content

Commit eda84c5

Browse files
committed
Update NuGet packages
1 parent 4277e34 commit eda84c5

File tree

7 files changed

+19
-21
lines changed

7 files changed

+19
-21
lines changed

GitHubActionsTestLogger.Demo/GitHubActionsTestLogger.Demo.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="CSharpier.MsBuild" Version="0.26.5" PrivateAssets="all" />
11+
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
13-
<PackageReference Include="xunit" Version="2.6.3" />
14-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" PrivateAssets="all" />
13+
<PackageReference Include="xunit" Version="2.6.4" />
14+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" PrivateAssets="all" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

GitHubActionsTestLogger.Tests/GitHubActionsTestLogger.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
<ItemGroup>
1212
<PackageReference Include="coverlet.collector" Version="6.0.0" PrivateAssets="all" />
13-
<PackageReference Include="CSharpier.MsBuild" Version="0.26.5" PrivateAssets="all" />
13+
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
1414
<PackageReference Include="FluentAssertions" Version="6.12.0" />
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
16-
<PackageReference Include="xunit" Version="2.6.3" />
17-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5" PrivateAssets="all" />
16+
<PackageReference Include="xunit" Version="2.6.4" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" PrivateAssets="all" />
1818
</ItemGroup>
1919

2020
<ItemGroup>

GitHubActionsTestLogger/GitHubActionsTestLogger.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="CSharpier.MsBuild" Version="0.26.5" PrivateAssets="all" />
24+
<PackageReference Include="CSharpier.MsBuild" Version="0.26.7" PrivateAssets="all" />
2525
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="17.8.0" />
2626
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
27-
<PackageReference Include="PolyShim" Version="1.8.0" PrivateAssets="all" />
27+
<PackageReference Include="PolyShim" Version="1.9.0" PrivateAssets="all" />
2828
<PackageReference Include="RazorBlade" Version="0.5.0" ExcludeAssets="compile;runtime" PrivateAssets="all" />
2929
</ItemGroup>
3030

GitHubActionsTestLogger/GitHubWorkflow.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ private void InvokeCommand(
1919
// URL-encode certain characters to ensure they don't get parsed as command tokens
2020
// https://pakstech.com/blog/github-actions-workflow-commands
2121
static string Escape(string value) =>
22-
value.Replace("%", "%25").Replace("\n", "%0A").Replace("\r", "%0D");
22+
value
23+
.Replace("%", "%25", StringComparison.Ordinal)
24+
.Replace("\n", "%0A", StringComparison.Ordinal)
25+
.Replace("\r", "%0D", StringComparison.Ordinal);
2326

2427
var formattedOptions = options
2528
?.Select(kvp => Escape(kvp.Key) + '=' + Escape(kvp.Value))

GitHubActionsTestLogger/TestSummaryTemplate.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@
166166
base.WriteLiteral(
167167
literal
168168
// Remove indentation
169-
.Replace(" ", "")
169+
.Replace(" ", "", StringComparison.Ordinal)
170170
// Remove linebreaks
171-
.Replace("\r", "").Replace("\n", "")
171+
.Replace("\r", "", StringComparison.Ordinal)
172+
.Replace("\n", "", StringComparison.Ordinal)
172173
);
173174
}
174175
else

GitHubActionsTestLogger/Utils/Extensions/StringExtensions.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ public static string SubstringAfterLast(
4646
return index >= 0 ? str.Substring(index + sub.Length, str.Length - index - sub.Length) : "";
4747
}
4848

49-
public static string Indent(this string str, int spaces)
50-
{
51-
var indentUnit = new string(' ', spaces);
52-
return indentUnit + str.Replace("\n", "\n" + new string(' ', spaces));
53-
}
54-
5549
public static int? TryParseInt(this string? str) =>
5650
int.TryParse(str, NumberStyles.Integer, CultureInfo.InvariantCulture, out var result)
5751
? result

GitHubActionsTestLogger/Utils/Extensions/TestResultExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ internal static class TestResultExtensions
1616
if (string.IsNullOrWhiteSpace(testResult.TestCase.FullyQualifiedName))
1717
return null;
1818

19-
var testMethodFullyQualifiedName = testResult
20-
.TestCase
21-
.FullyQualifiedName
22-
.SubstringUntil("(", StringComparison.OrdinalIgnoreCase);
19+
var testMethodFullyQualifiedName = testResult.TestCase.FullyQualifiedName.SubstringUntil(
20+
"(",
21+
StringComparison.OrdinalIgnoreCase
22+
);
2323

2424
var testMethodName = testMethodFullyQualifiedName.SubstringAfterLast(
2525
".",

0 commit comments

Comments
 (0)