mirror of
https://github.com/pnpm/action-setup.git
synced 2026-11-26 01:17:34 +08:00
test: invoke the resolved Windows executable extension
This commit is contained in:
1 file changed
+3
-1
@@ -451,7 +451,9 @@ jobs:
|
|||||||
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
||||||
throw "Expected $env:EXPECTED_VERSION on PATH, got $actual"
|
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) {
|
if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_VERSION) {
|
||||||
throw "Expected $env:EXPECTED_VERSION via bin_dest, got $actual"
|
throw "Expected $env:EXPECTED_VERSION via bin_dest, got $actual"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user