From 521cf4e5e18664f68aa5c341e05f285c93573d65 Mon Sep 17 00:00:00 2001 From: Joe George Date: Mon, 3 Jun 2024 14:07:41 -0400 Subject: [PATCH] Run dotnet format as part of ci --- .github/workflows/ci.yml | 4 ++++ .github/workflows/dotnet_format.yml | 19 ------------------- 2 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/dotnet_format.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 796133fcd..2157639c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,3 +71,7 @@ jobs: timeout-minutes: 30 working-directory: ice-demos/csharp run: ${{ matrix.csharp_build_command }} /m msbuild/ice.proj + + - name: Run .NET format + run: dotnet format --verify-no-changes "csharp/C# NET demos.sln" + if: runner.os == 'Linux' diff --git a/.github/workflows/dotnet_format.yml b/.github/workflows/dotnet_format.yml deleted file mode 100644 index 3da06ba12..000000000 --- a/.github/workflows/dotnet_format.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: dotnet format - -on: - workflow_dispatch: - push: - branches: ["main"] - pull_request: - # The branches below must be a subset of the branches above - branches: ["main"] - -jobs: - dotnet-format: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Run dotnet format - run: dotnet format --verify-no-changes "csharp/C# NET demos.sln"