From a3c5f835b42fbc7ec7ef5bc854ad51970a33a171 Mon Sep 17 00:00:00 2001 From: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Date: Thu, 10 Mar 2022 02:14:31 +0530 Subject: [PATCH] (chore): Use Convert-Path in CI (#3368) * Update test.ps1 * Update ci.yml --- .github/workflows/ci.yml | 4 ++-- bin/test.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f31872f213..93b24f329b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Init and Test shell: powershell run: | - $env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" + $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')" .\scoop_core\test\bin\init.ps1 .\my_bucket\bin\test.ps1 test_pwsh: @@ -43,6 +43,6 @@ jobs: - name: Init and Test shell: pwsh run: | - $env:SCOOP_HOME="$(Resolve-Path '.\scoop_core')" + $env:SCOOP_HOME="$(Convert-Path '.\scoop_core')" .\scoop_core\test\bin\init.ps1 .\my_bucket\bin\test.ps1 diff --git a/bin/test.ps1 b/bin/test.ps1 index 6a741d9bad..44c959827d 100644 --- a/bin/test.ps1 +++ b/bin/test.ps1 @@ -1,5 +1,5 @@ #Requires -Modules @{ ModuleName = 'Pester'; MaximumVersion = '4.99' } -if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path (scoop prefix scoop) } -$result = Invoke-Pester "$psscriptroot/.." -PassThru +if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = Convert-Path (scoop prefix scoop) } +$result = Invoke-Pester "$PSScriptRoot\.." -PassThru exit $result.FailedCount