From c062df29c5e673b9f18c1eecaae3cfeb44de61b4 Mon Sep 17 00:00:00 2001 From: dawe Date: Mon, 15 Jan 2024 01:27:27 +0100 Subject: [PATCH] Fix the format issue in the CI (#1222) * call fantomas directly instead of using msbuild target * just check the format * no need to exclude obj directories if we pass in just a directory --- .github/workflows/build.yml | 2 +- Directory.Solution.targets | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e8394401..622b70934 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,7 +87,7 @@ jobs: run: dotnet tool restore - name: Check format - run: dotnet build -t:CheckFormat + run: dotnet fantomas --check src env: DOTNET_ROLL_FORWARD: LatestMajor DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 diff --git a/Directory.Solution.targets b/Directory.Solution.targets index 88f38a382..ece14a3d3 100644 --- a/Directory.Solution.targets +++ b/Directory.Solution.targets @@ -1,14 +1,10 @@ - - - - - + - +