From 4528d1d0f4ddb2bc697224e0224a73fe40a64308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <2493377+askpt@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:41:54 +0100 Subject: [PATCH 1/3] Update dotnet-format.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com> --- .github/workflows/dotnet-format.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 3455a1e0..1ee6b0d9 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -22,9 +22,8 @@ jobs: - name: Setup .NET SDK uses: actions/setup-dotnet@v4 - - - name: Install format tool - run: dotnet tool install -g dotnet-format + with: + dotnet-version: 8.0.x - name: dotnet format - run: dotnet-format --folder --check + run: dotnet format --verify-no-changes From 025bc333a3b3edd368c597fac866f0d1eb7b35b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <2493377+askpt@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:52:07 +0100 Subject: [PATCH 2/3] Fixed path. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com> --- .github/workflows/dotnet-format.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 1ee6b0d9..642e25af 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -26,4 +26,4 @@ jobs: dotnet-version: 8.0.x - name: dotnet format - run: dotnet format --verify-no-changes + run: dotnet format --verify-no-changes OpenFeature.sln From 35faa79b98ad27d35578dfd1ef4bef62efce4511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <2493377+askpt@users.noreply.github.com> Date: Thu, 11 Apr 2024 08:46:49 +0100 Subject: [PATCH 3/3] Remove paths. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Silva <2493377+askpt@users.noreply.github.com> --- .github/workflows/dotnet-format.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml index 642e25af..9af0ae8b 100644 --- a/.github/workflows/dotnet-format.yml +++ b/.github/workflows/dotnet-format.yml @@ -2,28 +2,22 @@ name: dotnet format on: push: - branches: [ main ] - paths: - - '**.cs' - - '.editorconfig' + branches: [main] pull_request: - branches: [ main ] - paths: - - '**.cs' - - '.editorconfig' + branches: [main] jobs: check-format: runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v4 + - name: Check out code + uses: actions/checkout@v4 - - name: Setup .NET SDK - uses: actions/setup-dotnet@v4 - with: + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: dotnet-version: 8.0.x - - name: dotnet format - run: dotnet format --verify-no-changes OpenFeature.sln + - name: dotnet format + run: dotnet format --verify-no-changes OpenFeature.sln