From e0efcfbe45b2a27c73e9593bfd7a71fad2aa7a35 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 26 Apr 2022 17:21:07 +0200 Subject: [PATCH] Add dotnet-format tool (#1737) --- .config/dotnet-tools.json | 12 ++++++++++++ .editorconfig | 1 + .github/workflows/build.yml | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 .config/dotnet-tools.json diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 000000000..7f35d2cb1 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-format": { + "version": "5.1.250801", + "commands": [ + "dotnet-format" + ] + } + } +} diff --git a/.editorconfig b/.editorconfig index 1fbf4e5d8..1d09080d9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,7 @@ root = true # Don't use tabs for indentation. [*] indent_style = space +end_of_line = lf # (Please don't specify an indent_size here; that has too many unintended consequences.) # Code files diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b755a43f1..4f9ae9888 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,6 +105,14 @@ jobs: - name: Restore packages run: nuget restore + - name: Restore tools + run: dotnet tool restore + shell: pwsh + + # - name: Verify Format + # run: dotnet tool run dotnet-format --check + # shell: pwsh + - name: Run Core tests run: dotnet test test/Core.Test/Core.Test.csproj