mirror of
https://github.com/pnpm/action-setup.git
synced 2026-11-03 20:40:57 +00:00
test: invoke the resolved Windows executable extension
This commit is contained in:
@@ -451,7 +451,9 @@ jobs:
|
||||
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
||||
throw "Expected $env:EXPECTED_VERSION on PATH, got $actual"
|
||||
}
|
||||
$actual = & (Join-Path $env:BIN_DEST 'pnpm') --version
|
||||
$command = Get-Command pnpm
|
||||
$executable = Join-Path $env:BIN_DEST $command.Name
|
||||
$actual = & $executable --version
|
||||
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
||||
throw "Expected $env:EXPECTED_VERSION via bin_dest, got $actual"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user