From fa79d925ce5797724672e3a3ee149cd7818b9a49 Mon Sep 17 00:00:00 2001 From: Henrik van Peet Date: Wed, 6 Nov 2024 13:58:30 +0100 Subject: [PATCH] Add formatting to ci --- .github/workflows/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f25e8448..aef04422 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -106,5 +106,23 @@ jobs: with: name: Build-${{ matrix.targetPlatform }} path: build - + + format: + name: Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + lfs: true + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Format CustomScriptsAssembly.csproj + run: dotnet format CustomScriptsAssembly.csproj --verify-no-changes --verbosity diagnostic + - name: Format PlayModeTests.csproj + run: dotnet format PlayModeTests.csproj --verify-no-changes --verbosity diagnostic + - name: Format EditTests.csproj + run: dotnet format EditTests.csproj --verify-no-changes --verbosity diagnostic + \ No newline at end of file