mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
(chore): Use Convert-Path in CI (#3368)
* Update test.ps1 * Update ci.yml
This commit is contained in:
parent
2b4aabd4db
commit
a3c5f835b4
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user