From 9f4981ebd510595ea92f5aec529bbe76e6bbc66a Mon Sep 17 00:00:00 2001 From: KirillGutyrchik Date: Fri, 14 Jun 2024 15:40:29 +0300 Subject: [PATCH] Cache dotnet-coverage --- .github/workflows/msbuild.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 0f662277..4e386aa5 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -105,7 +105,16 @@ jobs: New-Item -Path .\.sonar\scanner -ItemType Directory dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner + - name: Cache dotnet-coverage + id: cache-dotnet-coverage + uses: actions/cache@v4 + with: + path: .\.dotnet\tools + key: ${{ runner.os }}-dotnet-coverage + restore-keys: ${{ runner.os }}-dotnet-coverage + - name: Install dotnet-coverage + if: steps.cache-dotnet-coverage.outputs.cache-hit != 'true' shell: powershell run: | dotnet tool install --global dotnet-coverage