From 36f253957d2165f96baa8f2995001bb730e43469 Mon Sep 17 00:00:00 2001 From: Jeremy Powell Date: Mon, 2 Dec 2024 12:35:38 +1300 Subject: [PATCH] Enforce formatting checks in CI --- .github/workflows/dotnet-desktop.yml | 4 ++++ OpenMcdf/System/NullableAttributes.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 3a4be3e3..8930bb9b 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -32,6 +32,10 @@ jobs: with: dotnet-version: 8.0.x + # Check formatting + - name: Check formatting + run: dotnet format --verify-no-changes $env:Solution_Name + # Execute all unit tests in the solution - name: Execute unit tests run: dotnet test --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" $env:Solution_Name diff --git a/OpenMcdf/System/NullableAttributes.cs b/OpenMcdf/System/NullableAttributes.cs index d62a560e..d828af51 100644 --- a/OpenMcdf/System/NullableAttributes.cs +++ b/OpenMcdf/System/NullableAttributes.cs @@ -197,4 +197,4 @@ public MemberNotNullWhenAttribute(bool returnValue, params string[] members) /// Gets field or property member names. public string[] Members { get; } -} \ No newline at end of file +}