From 744e5e103fbe80a0c7e84c6e965d46d4b04031c8 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 3 Nov 2022 22:38:14 +0000 Subject: [PATCH] feat(ci): add dotnet format check action --- .github/workflows/dotnetformat.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dotnetformat.yml diff --git a/.github/workflows/dotnetformat.yml b/.github/workflows/dotnetformat.yml new file mode 100644 index 00000000..d13e8b23 --- /dev/null +++ b/.github/workflows/dotnetformat.yml @@ -0,0 +1,17 @@ +name: Format check on pull request +on: [push, pull_request] +jobs: + dotnet-format: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Add dotnet-format problem matcher + uses: xt0rted/dotnet-format-problem-matcher@v1 + + - name: Restore dotnet tools + uses: xt0rted/dotnet-tool-restore@v1 + + - name: Run dotnet format + uses: xt0rted/dotnet-format@v1