zyborg / dotnet-tests-report

GitHub Action to run .NET Core tests and generate report attached to Workflow Run
MIT License
112 stars 36 forks source link

_TMP is getting created in the wrong place. #27

Open flcdrg opened 3 years ago

flcdrg commented 3 years ago

Noticed that it's not getting created relative to the root on Linux.

eg.

PS /home/david> $tmpDir = [System.IO.Path]::Combine($PWD, '_TMP')
PS /home/david> $tmpDir
/home/david/_TMP
PS /home/david> New-Item -Name $tmpDir -ItemType Directory -Force -ErrorAction Ignore

    Directory: /home/david/home/david

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          07/23/2021    15:44                _TMP

Looks like New-Item is always relative to current directory on Linux. Strange but oh well.