From 17aef3b4d717c3fb277ea1d86c8d83ce5100d01d Mon Sep 17 00:00:00 2001 From: sh1ngekyo Date: Mon, 9 Oct 2023 20:33:53 +0300 Subject: [PATCH] Add dotnet-format.yml --- .github/workflows/dotnet-format.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/dotnet-format.yml diff --git a/.github/workflows/dotnet-format.yml b/.github/workflows/dotnet-format.yml new file mode 100644 index 0000000..af002b2 --- /dev/null +++ b/.github/workflows/dotnet-format.yml @@ -0,0 +1,19 @@ +name: dotnet format + +on: [push, pull_request] + +jobs: + check-format: + runs-on: ubuntu-latest + + steps: + - name: Setup .NET Core + uses: actions/setup-dotnet@v2 + with: + dotnet-version: '7.0.x' + + - name: Check out code + uses: actions/checkout@v2 + + - name: Run dotnet format + run: dotnet format --no-restore --verify-no-changes \ No newline at end of file