test: invoke the resolved Windows executable extension

This commit is contained in:
Zoltan Kochan
2026-11-03 14:57:58 +01:00
parent e68a094b1a
commit 23c64316d8
+3 -1
View File
@@ -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"
} }