Adding csproj formatting #1276
Triggered via pull request
September 15, 2024 18:47
Status
Failure
Total duration
1m 36s
Artifacts
–
validate_pull_request.yml
on: pull_request
Run Tests
56s
Check Formatting
15s
Test CSharpier.MSBuild
1m 27s
Annotations
7 errors and 6 warnings
Run Tests:
Src/CSharpier.Cli.Tests/ServerTests.cs#L81
The type or namespace name 'Wrap' does not exist in the namespace 'CSharpier.Cli' (are you missing an assembly reference?)
|
Formats_CSX_File:
Src/CSharpier.Tests/CommandLineFormatterTests.cs#L137
Expected context.GetFileContent(unformattedFilePath) to be "#r "Microsoft.WindowsAzure.Storage"
public static void Run() { }
" with a length of 66, but "#r "Microsoft.WindowsAzure.Storage"
public static void Run()
{
}" has a length of 65, differs near "
{
" (index 61).
|
Formats_Overrides_File:
Src/CSharpier.Tests/CommandLineFormatterTests.cs#L169
Expected context.GetFileContent(unformattedFilePath) to be "public class ClassName
{
public int Field;
}
" with a length of 49, but "public class ClassName { public int Field; }" has a length of 44, differs near " { " (index 22).
|
Comments:
Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L22
Expected normalizedCode to be "<!-- comment -->
<Root>
<!-- comment -->
</Root>", but it has unexpected whitespace at the end.
|
Basics:
Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_csx.cs#L12
Expected result.FailureMessage to be empty, but found "Is an unsupported file type.".
|
Elements:
Src/CSharpier.Tests/obj/Release/net8.0/generated/CSharpier.Tests.Generators/CSharpier.Tests.Generators.FormattingTestsGenerator/FormattingTests_xml.cs#L32
Expected normalizedCode to be "<Root>
<Element />
<Element></Element>
<ElementWithText>Text</ElementWithText>
<SystemRuntimeSerializationPrimitivesPackageVersion
>4.3.0</SystemRuntimeSerializationPrimitivesPackageVersion
>
<RoslynToolPath Condition=" '$(RoslynToolPath)' == '' "
>$(MSBuildThisFileDirectory)..\..\tools\roslynlatest</RoslynToolPath
>
</Root>
" with a length of 371, but "<Root>
<Element />
<Element></Element>
<ElementWithText>Text</ElementWithText>
<SystemRuntimeSerializationPrimitivesPackageVersion
>4.3.0</SystemRuntimeSerializationPrimitivesPackageVersion>
<RoslynToolPath
Condition=" '$(RoslynToolPath)' == '' "
>$(MSBuildThisFileDirectory)..\..\tools\roslynlatest</RoslynToolPath>
</Root>
" has a length of 361, differs near ">4." (index 151).
|
Run Tests
Process completed with exit code 1.
|
Check Formatting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Check Formatting
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run Tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test CSharpier.MSBuild
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test CSharpier.MSBuild
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|