(chore): Use Convert-Path in CI (#3368)

* Update test.ps1

* Update ci.yml
This commit is contained in:
Rashil Gandhi 2022-03-10 02:14:31 +05:30 committed by GitHub
parent 2b4aabd4db
commit a3c5f835b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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