From 916aaeca1f3b5752e7b8776023c5e7803debb0f2 Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Wed, 15 Jan 2025 18:24:09 +0000 Subject: [PATCH] Task/dotnet tools in build (#15) * Add dotnet-consolidate and snitch to pipeline * Remove dup call --- .github/workflows/ci-build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 674865a..844d0a2 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -215,6 +215,17 @@ 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 Transitive Dependencies + run: snitch "${{ env.PROJECT_NAME }}.sln" + - name: Restore NuGet packages run: dotnet restore