From c537ebe7d2747513fe341d7e44899b0e7eb59f0d Mon Sep 17 00:00:00 2001 From: Vladimir Portyanikhin <86243191+portyanikhin@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:49:05 +0300 Subject: [PATCH] Added code style checking workflow using `CSharpier` --- .github/workflows/code-style.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/code-style.yml diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 0000000..6b65e86 --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,25 @@ +name: Code style + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + code-style: + name: Code style + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: | + 6.0.x + 7.0.x + - name: Restore tools + run: dotnet tool restore + - name: Check code style + run: dotnet csharpier --check .