From 545e5eba1a86eaff5e0702aa005b901de837dc6b Mon Sep 17 00:00:00 2001 From: BenjaminE <51031065+BenjaminE98@users.noreply.github.com> Date: Fri, 16 Sep 2022 14:17:36 +0200 Subject: [PATCH 1/2] Create dotnet-code-style.yml --- .github/workflows/dotnet-code-style.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/dotnet-code-style.yml diff --git a/.github/workflows/dotnet-code-style.yml b/.github/workflows/dotnet-code-style.yml new file mode 100644 index 0000000..c644886 --- /dev/null +++ b/.github/workflows/dotnet-code-style.yml @@ -0,0 +1,22 @@ +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: validate code-style + run: dotnet format --verify-no-changes + From c8f999d441861ae7457d5adfd1a37b5e01f9dc00 Mon Sep 17 00:00:00 2001 From: BenjaminE <51031065+BenjaminE98@users.noreply.github.com> Date: Fri, 16 Sep 2022 14:18:24 +0200 Subject: [PATCH 2/2] Update dotnet-code-style.yml --- .github/workflows/dotnet-code-style.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-code-style.yml b/.github/workflows/dotnet-code-style.yml index c644886..c6e814b 100644 --- a/.github/workflows/dotnet-code-style.yml +++ b/.github/workflows/dotnet-code-style.yml @@ -7,7 +7,7 @@ on: branches: [ "main" ] jobs: - build: + code-style-validation: runs-on: ubuntu-latest