From b9de85ca28ecf72ef297de000d40fa22071b60a3 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Sat, 11 Jan 2025 16:14:47 +0000 Subject: [PATCH] Add dotnet-consolidate and snitch to pipeline --- .github/workflows/ci-build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 674865a..036f44a 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -215,6 +215,20 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Install .NET Tools + run: | + dotnet tool install -g snitch + dotnet tool install -g dotnet-consolidate + + - name: Verify Package Consolidation + run: dotnet consolidate -s "${{ env.PROJECT_NAME }}.sln" + + - name: Verify Package Consolidation + run: dotnet-consolidate -s "${{ env.PROJECT_NAME }}.sln" + + - name: Verify Package Transitive Dependencies + run: snitch "${{ env.PROJECT_NAME }}.sln" + - name: Restore NuGet packages run: dotnet restore