From c8cf369c29600fcd2b28a2bf8f347661e971a568 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Wed, 3 Feb 2021 15:20:22 +0300 Subject: [PATCH] Debug --- .github/workflows/workflow.yml | 39 +++++++++++++++++----------------- __tests__/clear-toolcache.ps1 | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ef5814d..35a8336 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -46,26 +46,25 @@ jobs: - name: Clear toolcache shell: pwsh run: __tests__/clear-toolcache.ps1 ${{ runner.os }} - - - name: Clear tool cache (macOS) - if: runner.os == 'macos' - run: | - echo $PATH - dotnet --info - rm -rf "/Users/runner/.dotnet" - - name: Clear tool cache (Ubuntu) - if: runner.os == 'linux' - run: | - echo $PATH - dotnet --info - rm -rf "/usr/share/dotnet" - - name: Clear tool cache (Windows) - if: runner.os == 'windows' - run: | - echo $env:PATH - dotnet --info - Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue - Remove-Item "$env:ProgramFiles\dotnet/*" -Recurse -Force -ErrorAction SilentlyContinue + # - name: Clear tool cache (macOS) + # if: runner.os == 'macos' + # run: | + # echo $PATH + # dotnet --info + # rm -rf "/Users/runner/.dotnet" + # - name: Clear tool cache (Ubuntu) + # if: runner.os == 'linux' + # run: | + # echo $PATH + # dotnet --info + # rm -rf "/usr/share/dotnet" + # - name: Clear tool cache (Windows) + # if: runner.os == 'windows' + # run: | + # echo $env:PATH + # dotnet --info + # Remove-Item $env:LocalAppData\Microsoft\dotnet/* -Recurse -Force -ErrorAction SilentlyContinue + # Remove-Item "$env:ProgramFiles\dotnet/*" -Recurse -Force -ErrorAction SilentlyContinue # Side-by-side install of 2.2 and 3.1 used for the test project - name: Setup dotnet 2.2.402 uses: ./ diff --git a/__tests__/clear-toolcache.ps1 b/__tests__/clear-toolcache.ps1 index 0867ae5..e76ed28 100644 --- a/__tests__/clear-toolcache.ps1 +++ b/__tests__/clear-toolcache.ps1 @@ -18,7 +18,7 @@ if ($os -eq "Linux") { foreach ($path in $pathsToClear) { if (Test-Path $path) { - Write-Host "Clear $path" + Write-Host "Clear $path path" Remove-Item $path -Recurse -Force } }